This change moves the ZigZagDecode function from varint.cc to varint.h
so that it is part of pw_varint's public interface.
Change-Id: I53a659f1e5c701465c277eab2082d57624c0e65c
This change removes "Varint" from the names of the Encode and Decode
functions in the pw_varint module, as they are already namespaced by
pw::varint.
Change-Id: I8f1383e390624b677d161a2ac2a1327c5e7ba5b1
This change switches pw_varint to using spans of std::byte instead of
uint8_t for encoding and decoding. The pw_protobuf module, which uses
pw_varint, is also updated.
A ToString formatter for std::byte is also added to pw_string (required
to use std::byte in unit test EXPECT statements).
Change-Id: I198370eecdabde32a85987dda98aed84c85b9c91
This change adds a pw_varint module containing functions for encoding
and decoding variable-length integers.
Change-Id: I50bdf6d9d6762bffb93ee638683de53afed9c849