Home
last modified time | relevance | path

Searched refs:InputStreamBuffer (Results 1 – 6 of 6) sorted by relevance

/system/nvram/messages/include/nvram/messages/
Dio.h37 class NVRAM_EXPORT InputStreamBuffer {
39 InputStreamBuffer() = default;
40 InputStreamBuffer(const void* data, size_t size);
41 InputStreamBuffer(const void* start, const void* end);
42 virtual ~InputStreamBuffer() = default;
80 class NVRAM_EXPORT NestedInputStreamBuffer : public InputStreamBuffer {
85 NestedInputStreamBuffer(InputStreamBuffer* delegate, size_t size);
97 static const uint8_t* ClampEnd(InputStreamBuffer* delegate, size_t size);
99 InputStreamBuffer* delegate_;
236 explicit ProtoReader(InputStreamBuffer* stream_buffer);
[all …]
Dproto.hpp470 bool Decode(Struct* object, InputStreamBuffer* stream) { in Decode()
/system/nvram/messages/
Dio.cpp52 bool DecodeVarint(InputStreamBuffer* stream_buffer, uint64_t* value) { in DecodeVarint()
74 InputStreamBuffer::InputStreamBuffer(const void* data, size_t size) in InputStreamBuffer() function in nvram::InputStreamBuffer
75 : InputStreamBuffer(data, static_cast<const uint8_t*>(data) + size) {} in InputStreamBuffer()
77 InputStreamBuffer::InputStreamBuffer(const void* start, const void* end) in InputStreamBuffer() function in nvram::InputStreamBuffer
83 bool InputStreamBuffer::Done() { in Done()
87 bool InputStreamBuffer::Read(void* data, size_t size) { in Read()
105 bool InputStreamBuffer::ReadByte(uint8_t* byte) { in ReadByte()
117 bool InputStreamBuffer::Skip(size_t size) { in Skip()
131 bool InputStreamBuffer::Advance() { in Advance()
135 NestedInputStreamBuffer::NestedInputStreamBuffer(InputStreamBuffer* delegate, in NestedInputStreamBuffer()
[all …]
Dnvram_messages.cpp194 InputStreamBuffer stream(data, size); in Decode()
/system/nvram/messages/tests/
Dio_test.cpp32 class TestInputStreamBuffer : public InputStreamBuffer {
68 void CheckRead(InputStreamBuffer* buffer, size_t size, size_t pos) { in CheckRead()
96 InputStreamBuffer buf(nullptr, nullptr); in TEST()
/system/nvram/core/
Dpersistence.cpp68 InputStreamBuffer stream(blob.data(), blob.size()); in DecodeObject()