Commit Graph

3 Commits

Author SHA1 Message Date
Alexei Frolov
311c620af6 pw_varint: use std::byte instead of uint8_t
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
2020-01-06 19:47:54 +00:00
Wyatt Hepler
8c493bbf76 Fix the copyright notice on a few files
Change-Id: Ieff83592399946000fc806a037b0f5ffcaa3bd10
2019-12-03 00:00:28 +00:00
Alexei Frolov
82d3cb35d3 pw_varint: Add varint module
This change adds a pw_varint module containing functions for encoding
and decoding variable-length integers.

Change-Id: I50bdf6d9d6762bffb93ee638683de53afed9c849
2019-12-02 18:39:29 +00:00