aboutsummaryrefslogtreecommitdiff
path: root/src/protobuf/stream.nim
AgeCommit message (Collapse)Author
2018-04-03Rename stream.nim to protobuf.nim and merge with types.nimOskari Timperi
2018-04-02Fix packed field size calculationOskari Timperi
The size was calculated based on wire type. We need to calculate based on field type because for sint32/sint64 we need to zigzag encode the value before calculating the size of varint.
2018-04-02Multiple fixes to reading data from a streamOskari Timperi
- littleEndia32/64 arguments were in wrong order in a few places - add safeReadStr that throws and exception if couldn't read enough data - throw exceptions when not reading enough data
2018-04-02Validate wire typesOskari Timperi
2018-04-02Raise an exception if an invalid field number is encounteredOskari Timperi
2018-04-01Add procs for bytes to stream.nimOskari Timperi
2018-03-27Get rid of the distinct numeric typesOskari Timperi
We have distinct procs for reading and writing differently encoded data, so we don't need distinct types in this case.
2018-03-25Add support for skipping unknown fieldsOskari Timperi
2018-03-25Add packed support to generateSizeOfMessageProc()Oskari Timperi
2018-03-24initial commitOskari Timperi