├── .gitignore ├── .travis.yml ├── INSTALL ├── LICENSE ├── Makefile.am ├── README.md ├── autogen.sh ├── bser.c ├── bser.h ├── bser_parse.c ├── bser_parse.h ├── bser_private.h ├── bser_write.c ├── bser_write.h ├── configure.ac ├── proto.h ├── tests ├── Makefile.am ├── bser2json.c ├── check_bser.c ├── check_watchman.c ├── json2bser.c ├── run_tests.sh ├── t │ ├── array_array.bser │ ├── array_array.json │ ├── array_deep.bser │ ├── array_deep.json │ ├── array_empty.bser │ ├── array_empty.json │ ├── array_hemogenous.bser │ ├── array_hemogenous.json │ ├── array_int.bser │ ├── array_int.json │ ├── array_string.bser │ ├── array_string.json │ ├── compact_array.bser │ ├── compact_array.json │ ├── compact_array_nuls.bser │ ├── compact_array_nuls.json │ ├── false.bser │ ├── false.json │ ├── int_huge.bser │ ├── int_huge.json │ ├── int_large.bser │ ├── int_large.json │ ├── int_neg.bser │ ├── int_neg.json │ ├── int_short.bser │ ├── int_short.json │ ├── int_short_neg.bser │ ├── int_short_neg.json │ ├── int_small.bser │ ├── int_small.json │ ├── int_small_signbit.bser │ ├── int_small_signbit.json │ ├── null.bser │ ├── null.json │ ├── object.bser │ ├── object.json │ ├── object_big.bser │ ├── object_big.json │ ├── object_empty.bser │ ├── object_empty.json │ ├── real.bser │ ├── real.json │ ├── string_medium.bser │ ├── string_medium.json │ ├── string_small.bser │ ├── string_small.json │ ├── true.bser │ └── true.json ├── testBserEncoding.sh └── testBserParsing.sh ├── watchman.c └── watchman.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/.travis.yml -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/INSTALL -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/Makefile.am -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/README.md -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/autogen.sh -------------------------------------------------------------------------------- /bser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser.c -------------------------------------------------------------------------------- /bser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser.h -------------------------------------------------------------------------------- /bser_parse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser_parse.c -------------------------------------------------------------------------------- /bser_parse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser_parse.h -------------------------------------------------------------------------------- /bser_private.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser_private.h -------------------------------------------------------------------------------- /bser_write.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser_write.c -------------------------------------------------------------------------------- /bser_write.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/bser_write.h -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/configure.ac -------------------------------------------------------------------------------- /proto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/proto.h -------------------------------------------------------------------------------- /tests/Makefile.am: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/Makefile.am -------------------------------------------------------------------------------- /tests/bser2json.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/bser2json.c -------------------------------------------------------------------------------- /tests/check_bser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/check_bser.c -------------------------------------------------------------------------------- /tests/check_watchman.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/check_watchman.c -------------------------------------------------------------------------------- /tests/json2bser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/json2bser.c -------------------------------------------------------------------------------- /tests/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/run_tests.sh -------------------------------------------------------------------------------- /tests/t/array_array.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_array.bser -------------------------------------------------------------------------------- /tests/t/array_array.json: -------------------------------------------------------------------------------- 1 | [ [ 3, 4 ], [ ] ] 2 | -------------------------------------------------------------------------------- /tests/t/array_deep.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_deep.bser -------------------------------------------------------------------------------- /tests/t/array_deep.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_deep.json -------------------------------------------------------------------------------- /tests/t/array_empty.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_empty.bser -------------------------------------------------------------------------------- /tests/t/array_empty.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /tests/t/array_hemogenous.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_hemogenous.bser -------------------------------------------------------------------------------- /tests/t/array_hemogenous.json: -------------------------------------------------------------------------------- 1 | [ 4, "foo", { }, [ ] ] 2 | -------------------------------------------------------------------------------- /tests/t/array_int.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_int.bser -------------------------------------------------------------------------------- /tests/t/array_int.json: -------------------------------------------------------------------------------- 1 | [ 0, 1, 2, 3 ] 2 | -------------------------------------------------------------------------------- /tests/t/array_string.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_string.bser -------------------------------------------------------------------------------- /tests/t/array_string.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/array_string.json -------------------------------------------------------------------------------- /tests/t/compact_array.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/compact_array.bser -------------------------------------------------------------------------------- /tests/t/compact_array.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/compact_array.json -------------------------------------------------------------------------------- /tests/t/compact_array_nuls.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/compact_array_nuls.bser -------------------------------------------------------------------------------- /tests/t/compact_array_nuls.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/compact_array_nuls.json -------------------------------------------------------------------------------- /tests/t/false.bser: -------------------------------------------------------------------------------- 1 | 0001030400030109 2 | -------------------------------------------------------------------------------- /tests/t/false.json: -------------------------------------------------------------------------------- 1 | [ false ] 2 | -------------------------------------------------------------------------------- /tests/t/int_huge.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/int_huge.bser -------------------------------------------------------------------------------- /tests/t/int_huge.json: -------------------------------------------------------------------------------- 1 | [ 4345562374 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_large.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/int_large.bser -------------------------------------------------------------------------------- /tests/t/int_large.json: -------------------------------------------------------------------------------- 1 | [ 50595078 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_neg.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/int_neg.bser -------------------------------------------------------------------------------- /tests/t/int_neg.json: -------------------------------------------------------------------------------- 1 | [ -3 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_short.bser: -------------------------------------------------------------------------------- 1 | 00010306000301040201 2 | -------------------------------------------------------------------------------- /tests/t/int_short.json: -------------------------------------------------------------------------------- 1 | [ 258 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_short_neg.bser: -------------------------------------------------------------------------------- 1 | 000103060003010438fe 2 | -------------------------------------------------------------------------------- /tests/t/int_short_neg.json: -------------------------------------------------------------------------------- 1 | [ -456 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_small.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/int_small.bser -------------------------------------------------------------------------------- /tests/t/int_small.json: -------------------------------------------------------------------------------- 1 | [ 12 ] 2 | -------------------------------------------------------------------------------- /tests/t/int_small_signbit.bser: -------------------------------------------------------------------------------- 1 | 0001030600030104fd00 2 | -------------------------------------------------------------------------------- /tests/t/int_small_signbit.json: -------------------------------------------------------------------------------- 1 | [ 253 ] 2 | -------------------------------------------------------------------------------- /tests/t/null.bser: -------------------------------------------------------------------------------- 1 | 000103040003010a 2 | -------------------------------------------------------------------------------- /tests/t/null.json: -------------------------------------------------------------------------------- 1 | [ null ] 2 | -------------------------------------------------------------------------------- /tests/t/object.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/object.bser -------------------------------------------------------------------------------- /tests/t/object.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/object.json -------------------------------------------------------------------------------- /tests/t/object_big.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/object_big.bser -------------------------------------------------------------------------------- /tests/t/object_big.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/object_big.json -------------------------------------------------------------------------------- /tests/t/object_empty.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/object_empty.bser -------------------------------------------------------------------------------- /tests/t/object_empty.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/t/real.bser: -------------------------------------------------------------------------------- 1 | 0001030c00030107182d4454fb210940 2 | -------------------------------------------------------------------------------- /tests/t/real.json: -------------------------------------------------------------------------------- 1 | [ 3.1415926535897931 ] 2 | -------------------------------------------------------------------------------- /tests/t/string_medium.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/string_medium.bser -------------------------------------------------------------------------------- /tests/t/string_medium.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/string_medium.json -------------------------------------------------------------------------------- /tests/t/string_small.bser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/t/string_small.bser -------------------------------------------------------------------------------- /tests/t/string_small.json: -------------------------------------------------------------------------------- 1 | [ "foo" ] 2 | -------------------------------------------------------------------------------- /tests/t/true.bser: -------------------------------------------------------------------------------- 1 | 0001030400030108 2 | -------------------------------------------------------------------------------- /tests/t/true.json: -------------------------------------------------------------------------------- 1 | [ true ] 2 | -------------------------------------------------------------------------------- /tests/testBserEncoding.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/testBserEncoding.sh -------------------------------------------------------------------------------- /tests/testBserParsing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/tests/testBserParsing.sh -------------------------------------------------------------------------------- /watchman.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/watchman.c -------------------------------------------------------------------------------- /watchman.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twitter/libwatchman/HEAD/watchman.h --------------------------------------------------------------------------------