Searched refs:ReadInOrder (Results 1 – 4 of 4) sorted by relevance
/external/pigweed/pw_bytes/ |
D | endian_test.cc | 165 TEST(ReadInOrder, 8Bit_Big) { 166 EXPECT_EQ(ReadInOrder<uint8_t>(std::endian::big, "\0"), 0u); 167 EXPECT_EQ(ReadInOrder<uint8_t>(std::endian::big, "\x80"), 0x80u); 168 EXPECT_EQ(ReadInOrder<uint8_t>(std::endian::big, kNumber), 0x11u); 170 EXPECT_EQ(ReadInOrder<int8_t>(std::endian::big, "\0"), 0); 171 EXPECT_EQ(ReadInOrder<int8_t>(std::endian::big, "\x80"), -128); 172 EXPECT_EQ(ReadInOrder<int8_t>(std::endian::big, kNumber), 0x11); 175 TEST(ReadInOrder, 8Bit_Little) { 176 EXPECT_EQ(ReadInOrder<uint8_t>(std::endian::little, "\0"), 0u); 177 EXPECT_EQ(ReadInOrder<uint8_t>(std::endian::little, "\x80"), 0x80u); [all …]
|
/external/pigweed/pw_bytes/public/pw_bytes/ |
D | endian.h | 147 T ReadInOrder(std::endian order, const void* buffer) { in ReadInOrder() function 159 T ReadInOrder(std::endian order, std::span<B, kBufferSize> buffer) { in ReadInOrder() function 161 return ReadInOrder<T>(order, buffer.data()); in ReadInOrder() 166 T ReadInOrder(std::endian order, const std::array<B, kBufferSize>& buffer) { in ReadInOrder() function 167 return ReadInOrder<T>(order, std::span(buffer)); in ReadInOrder() 172 T ReadInOrder(std::endian order, const B (&buffer)[kBufferSize]) { in ReadInOrder() function 173 return ReadInOrder<T>(order, std::span(buffer)); in ReadInOrder() 179 [[nodiscard]] bool ReadInOrder(std::endian order, in ReadInOrder() function 186 value = ReadInOrder<T>(order, buffer.data()); in ReadInOrder()
|
D | byte_builder.h | 124 return bytes::ReadInOrder<uint8_t>(std::endian::little, byte_); in PeekUint8() 132 return bytes::ReadInOrder<uint16_t>(order, byte_); 140 return bytes::ReadInOrder<uint32_t>(order, byte_); 148 return bytes::ReadInOrder<uint64_t>(order, byte_); 157 uint8_t value = bytes::ReadInOrder<uint8_t>(std::endian::little, byte_); in ReadUint8() 167 uint16_t value = bytes::ReadInOrder<uint16_t>(order, byte_); 177 uint32_t value = bytes::ReadInOrder<uint32_t>(order, byte_); 187 int64_t value = bytes::ReadInOrder<int64_t>(order, byte_);
|
/external/pigweed/pw_hdlc/ |
D | decoder.cc | 158 bytes::ReadInOrder<uint32_t>(std::endian::little, fcs_buffer); in VerifyFrameCheckSequence()
|