Commit graph

292 commits

Author SHA1 Message Date
Petr Mrázek
dc72a20b7e Fix not building on Gentoo
Originally from https://github.com/Barteks2x
2020-06-07 21:30:03 +02:00
Petr Mrázek
d7deea6dac Implement tag 12 (array of 64bit long) and fix tests 2020-06-07 21:23:04 +02:00
Petr Mrázek
92f8d57227 fix cmake install command to not install .a files on windows 2018-01-27 02:41:07 +01:00
Petr Mrázek
c3ec5b3bc7 Add cmake install command 2018-01-22 04:21:39 +01:00
Petr Mrázek
4b305bbd2a Allow renaming the library file from a parent project
You can set NBT_NAME to something. Otherwise it defaults to 'nbt++'.
2016-12-28 21:12:10 +01:00
Petr Mrázek
5d0ffb50a5 Bump cmake to 3.1 and use the new CXX_STANDARD settings 2015-09-28 20:51:00 +02:00
Petr Mrázek
9d17b0a9b9 Fix CMake CMP0063 warning when building static 2015-09-23 00:44:46 +02:00
Petr Mrázek
076647597f Make zlib optional, adapt for including 2015-09-23 00:44:46 +02:00
ljfa-ag
7f38044924 Fix CMake CMP0063 warning 2015-09-22 17:31:58 +02:00
ljfa
9511d3c46d Use target-specific CMake commands (thanks jandal) 2015-09-22 16:21:17 +02:00
ljfa
682caa865d Only search CxxTest when NBT_BUILD_TESTS is on 2015-09-22 15:57:20 +02:00
ljfa
3f965312d6 Explicitly instantiate and export templates in header
and move defintions of tag_array::at to header
2015-09-22 15:43:57 +02:00
ljfa
9c63256baa Add exports for shared libraries. Closes #7 2015-09-22 15:43:47 +02:00
ljfa
c178c30552 Add option for building shared library (#7)
No export headers yet though
2015-09-22 11:12:25 +02:00
ljfa
fe4d1dca6a Maaaaaybe the WIP can be removed now 2015-09-21 20:04:10 +02:00
ljfa
5cc13f6a35 Version bump
Remove PRD.md
2015-09-21 19:53:48 +02:00
ljfa
8773152a57 Make the inflate_streambuf rewind the input 2015-09-21 18:10:03 +02:00
ljfa
5713642917 Add hint for default compression level 2015-09-21 15:03:36 +02:00
ljfa
083939ed64 Add tests for reading and writing gzipped tags 2015-09-21 15:00:15 +02:00
ljfa
dea9b34634 Remove redundant explicit 2015-09-21 13:39:28 +02:00
ljfa
76dcc4a9d1 Create zlib_streambuf base class 2015-09-21 13:26:04 +02:00
ljfa
f76d4d228b Make close honor the exceptions mask 2015-09-21 10:21:17 +02:00
ljfa
28d735a326 Add test for writing to a closed ozlibstream 2015-09-21 08:56:39 +02:00
ljfa
c7ca7fc947 More assertions 2015-09-21 08:47:25 +02:00
ljfa
64e6d2abc7 Create ozlibstream::close method
Set failbit on output stream on failure
2015-09-21 08:33:16 +02:00
ljfa-ag
07a9300246 Fix derp... 2015-09-20 20:13:59 +02:00
ljfa-ag
fb7e662774 Merge branch 'zlibstream' 2015-09-20 20:09:07 +02:00
ljfa-ag
8de2517080 Fix indentation in comments 2015-09-20 20:08:22 +02:00
ljfa-ag
70309e9783 Add more tests for deflating 2015-09-20 19:31:14 +02:00
ljfa-ag
84d2896da1 Implement ozlibstream 2015-09-20 19:15:27 +02:00
ljfa-ag
264ec99e7b Changes to deflate_streambuf and ozlibstream constructors 2015-09-16 18:41:45 +02:00
ljfa-ag
694855d5f5 Change operator>> to read for test_inflate_corrupt
operator>>(streambuf*) seems to be weird when it comes to exceptions,
and it behaves differently on g++ and clang
2015-09-16 14:25:35 +02:00
ljfa-ag
837f04f57e Change stringbuf to string for bigtest
Enable exceptions for badbit as well
2015-09-16 14:20:29 +02:00
ljfa-ag
7cb16a28b6 Fix CMake not finding zlib 2015-09-16 12:42:58 +02:00
ljfa-ag
0208032d53 Merge branch 'zlibstream' 2015-09-15 23:41:16 +02:00
ljfa-ag
edaaac5a6c Moving and copying is disabled for ozlibstream too 2015-09-15 23:40:49 +02:00
ljfa-ag
93a4f406d0 Fix base constructor calls of i/ostream
Add missing noexcept
2015-09-15 23:37:49 +02:00
ljfa-ag
cfbde1f32c Make test_visitor more accurate 2015-09-15 21:12:07 +02:00
ljfa-ag
84cf824153 Make sure testfiles are copied for all tests that need them 2015-09-15 21:02:03 +02:00
ljfa-ag
ef10a4f34a Add test for inflating zlib data 2015-09-15 20:41:11 +02:00
ljfa-ag
2d8cc72760 Handle nullptr message in zlib_error 2015-09-15 14:59:02 +02:00
ljfa-ag
5d0b98fb46 Copying and moving is implicitly disabled anyway 2015-09-15 14:25:23 +02:00
ljfa-ag
c782034564 Merge branch 'zlibstream' 2015-09-15 14:01:35 +02:00
ljfa-ag
7a8a1833dc Add tests for corrupted input data 2015-09-15 13:25:36 +02:00
ljfa-ag
0f76512c7a Add tests for different buffer sizes 2015-09-15 12:50:06 +02:00
ljfa-ag
82efd65efe Add more doxygen to inflate_streambuf 2015-09-15 12:04:09 +02:00
ljfa-ag
a692b3be10 Check for errors in input stream 2015-09-15 12:04:08 +02:00
ljfa-ag
089a804a12 Enable exceptions flag in test 2015-09-15 12:04:03 +02:00
ljfa-ag
4f96ef6b0d Change zlib_error to take message and code 2015-09-15 12:03:04 +02:00
ljfa-ag
0c6f7fcccc Use different windowBits value to avoid zlib bug 2015-09-15 12:03:03 +02:00