array parsing
commit2cbc8b1d527e5b9f68c82ee0d5253ef3e35b934b
authorPieter Hooimeijer <pieter@fb.com>
Thu, 1 Dec 2016 17:54:12 +0000 (1 09:54 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Thu, 1 Dec 2016 18:13:33 +0000 (1 10:13 -0800)
tree6610f710c81287a29e5c627b4229957225e812b9
parentbc658ba7caa15dec0c64edc639c14b85866d1cc4
array parsing

Summary:
See https://facebook.github.io/watchman/docs/bser.html .

An array has the format:

  [tag][size][elements]

Where the tag is `\x01`, size is any BSER integer (8, 16,
32, or 64 bits), and the elements are contiguous with
no separator.

Reviewed By: sblackshear

Differential Revision: D3809365

fbshipit-source-id: c52c5f5a6e305adcb093e215f48429e88186de87
25 files changed:
hphp/hack/src/utils/bser/bser.ml
hphp/hack/test/utils/bser/json_output/01_negative_8bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/01_negative_8bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/02_8bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/02_8bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/03_negative_16bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/03_negative_16bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/04_16bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/04_16bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/05_negative_32bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/05_negative_32bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/06_32bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/06_32bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/07_negative_64bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/07_negative_64bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/08_64bit.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/08_64bit.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/09_array_empty.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/09_array_empty.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/10_array_8bit_int.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/10_array_8bit_int.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/11_array_wide_size.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/11_array_wide_size.bser.exp [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/12_array_multiple.bser [new file with mode: 0644]
hphp/hack/test/utils/bser/json_output/12_array_multiple.bser.exp [new file with mode: 0644]