picoproto icon indicating copy to clipboard operation
picoproto copied to clipboard

Abominably Tiny Protobuf File Parser in C++

Results 4 picoproto issues
Sort by recently updated
recently updated
newest added

``` void ReadWireTypeAndFieldNumber(uint8_t** current, size_t* remaining, uint8_t* wire_type, uint32_t* field_number) { const uint8_t wire_type_and_field_number = ReadFromBytes(current, remaining); *wire_type = wire_type_and_field_number & 0x07; *field_number = wire_type_and_field_number >> 3; if (*field_number >=...

The field class deletes the contents of cached_messages but never the vector itself and thus leakes memory. This can be fixed by inserting the following line at picoproto.cc 193: delete...

It will be better to provide a function of serializing an object to protocol buffer.

variant is safer than union, so it's better to replace union with variant.