read endpoint info

PiperOrigin-RevId: 729312008
This commit is contained in:
Guogang Li
2025-02-20 17:31:45 -08:00
committed by Copybara-Service
parent add588c622
commit fdb0f0f351
6 changed files with 170 additions and 2 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ namespace nearby {
// A base {@link InputStream } for reading the contents of a byte array.
class StreamReader {
public:
explicit StreamReader(ByteArray &buffer) : buffer_{buffer} {}
explicit StreamReader(const ByteArray &buffer) : buffer_{buffer} {}
StreamReader(const StreamReader &) = delete;
StreamReader &operator=(const StreamReader &) = delete;
~StreamReader() = default;
@@ -54,7 +54,7 @@ class StreamReader {
uint8_t bits_unused_{0};
uint8_t bits_buffer_{0};
ByteArray &buffer_;
const ByteArray &buffer_;
size_t position_{0};
};