Skip to content

Instantly share code, notes, and snippets.

@clockworkgr
Created October 16, 2020 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clockworkgr/03118ea2fa983468465b4d786e790bb5 to your computer and use it in GitHub Desktop.
Save clockworkgr/03118ea2fa983468465b4d786e790bb5 to your computer and use it in GitHub Desktop.
Primitive types and functions
In use:
uint8
uint16
uint32
uint64
int64
varint32
varuint64
time_point_sec => (uint32 timestamp)
bytes(length) => length bytes
bool => single byte
set() => varint32 length of set then each set element
map() =>
optional() => single byte to signify existence (0 or 1) . if 1 followed by optional element
array() => varint32 length of array then each array element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment