Skip to content

Instantly share code, notes, and snippets.

@avsej
Created July 19, 2012 21:05
Show Gist options
  • Select an option

  • Save avsej/3146822 to your computer and use it in GitHub Desktop.

Select an option

Save avsej/3146822 to your computer and use it in GitHub Desktop.
DATA_TYPE
=========
+---------------+
|7 6 5 4 3 2 1 0|
+---------------+
00000000: RAW_BYTES
0-2: Serializers.
They cannot be mixed, so there are 8 possible serializers:
0x0 (000): default serializer: none
0x1 (001): JSON
0x2 (010): Language specific
0x3 (011): unspecified
0x4 (100): unspecified
0x5 (101): unspecified
0x6 (110): unspecified
0x7 (111): unspecified
3-4: Compression.
Compression also cannot be mixed, so there are 4 possible compressors:
0x0 (00): default compression: none
0x1 (01): zlib
0x2 (10): unspecified
0x3 (11): unspecified
5-7: Flags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment