genmodel 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/ext/Genmodel/GenModelBase.cpp +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGI1ODc4MDU2MDUyNzg2OWY5NzE2MDdmNTFmZGU2YmQzMWI4Mjc0Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzY2ZjhhZmRlMTkyODk1ODZiNGE3NjcyN2E1NDRlMDI4MzIwZGVmMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmFkZTI2OWU5MTQwNzNlNzY0ZWFiNWRmZGQzZDAyMzI5OWI3ZDNhMTUzZDkw
|
10
|
+
ZjUyMjM1Njg2ZGZkY2Y4YmI1MTg5NDMzNDEzMjRhYmJiNjRiMzcxODQwOWQy
|
11
|
+
MmE0YTUyMDhiMDQ1MzQ1MDUwN2EwM2NhMWRmNjY1OTg3ZDc4YzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjhkM2Q1ZmZhMDU0MGM3OTU1NDY2ZDdkMmYyNTMyMjI2OTQ5N2ZhYTNlMmQ5
|
14
|
+
YmE1OWFjNGU4YzRhMjJmYjg3MGMxMDE4YzBjZDg4MmE2MTBkMGMzYTYxNDVh
|
15
|
+
MThkZmFmZGE3MWE5YTY3NjVhNGExMmY5YzYyM2IyZmIzZWYzMmM=
|
@@ -146,7 +146,8 @@ vector<unsigned char> compress_data(unsigned char* data, size_t size, int compre
|
|
146
146
|
zs.zfree = Z_NULL;
|
147
147
|
zs.opaque = Z_NULL;
|
148
148
|
if (deflateInit2 (&zs, compressionlevel, Z_DEFLATED, windowsBits | GZIP_ENCODING, 8, Z_DEFAULT_STRATEGY))
|
149
|
-
throw(
|
149
|
+
throw string("compress_data : failed while compressing.");
|
150
|
+
//throw(std::runtime_error("deflateInit failed while compressing."));
|
150
151
|
|
151
152
|
//zs.next_in = (Bytef*)str.data();
|
152
153
|
//zs.avail_in = str.size(); // set the z_stream's input
|
@@ -202,7 +203,8 @@ vector<unsigned char> compress_data(unsigned char* data, size_t size, int compre
|
|
202
203
|
if (ret != Z_STREAM_END) { // an error occurred that was not EOF
|
203
204
|
std::ostringstream oss;
|
204
205
|
oss << "Exception during zlib compression: (" << ret << ") " << zs.msg;
|
205
|
-
throw(std::runtime_error(oss.str()));
|
206
|
+
//throw(std::runtime_error(oss.str()));
|
207
|
+
throw string("compress_data : ")+oss.str();
|
206
208
|
}
|
207
209
|
|
208
210
|
return _outbuffer;
|