Home
last modified time | relevance | path

Searched refs:user_preamble_bytes (Results 1 – 2 of 2) sorted by relevance

/external/pigweed/pw_ring_buffer/
Dprefixed_entry_ring_buffer.cc90 size_t user_preamble_bytes = 0; in InternalPushBack() local
92 user_preamble_bytes = in InternalPushBack()
96 data.size_bytes(), std::span(preamble_buf).subspan(user_preamble_bytes)); in InternalPushBack()
98 user_preamble_bytes + length_bytes + data.size_bytes(); in InternalPushBack()
115 RawWrite(std::span(preamble_buf, user_preamble_bytes + length_bytes)); in InternalPushBack()
330 size_t user_preamble_bytes = 0; in FrontEntryInfo() local
335 user_preamble_bytes = varint::Decode(varint_buf, &user_preamble_data); in FrontEntryInfo()
336 PW_DASSERT(user_preamble_bytes != 0u); in FrontEntryInfo()
341 IncrementIndex(reader.read_idx, user_preamble_bytes), in FrontEntryInfo()
348 info.preamble_bytes = user_preamble_bytes + length_bytes; in FrontEntryInfo()
Dprefixed_entry_ring_buffer_test.cc106 size_t user_preamble_bytes = (user_data ? 1 : 0); in SingleEntryWriteReadTest() local
107 size_t data_size = sizeof(single_entry_data) - user_preamble_bytes; in SingleEntryWriteReadTest()
111 expect_buffer[user_preamble_bytes] = byte(data_size); in SingleEntryWriteReadTest()
253 size_t user_preamble_bytes = (user_data ? 1 : 0); in SingleEntryWriteReadWithSectionWriterTest() local
254 size_t data_size = sizeof(single_entry_data) - user_preamble_bytes; in SingleEntryWriteReadWithSectionWriterTest()
258 expect_buffer[user_preamble_bytes] = byte(data_size); in SingleEntryWriteReadWithSectionWriterTest()