Home
last modified time | relevance | path

Searched refs:ByteBuilder (Results 1 – 8 of 8) sorted by relevance

/external/pigweed/pw_bytes/public/pw_bytes/
Dbyte_builder.h37 class ByteBuilder {
204 constexpr ByteBuilder(ByteSpan buffer) : buffer_(buffer), size_(0) {} in ByteBuilder() function
208 ByteBuilder(const ByteBuilder&) = delete;
210 ByteBuilder& operator=(const ByteBuilder&) = delete;
275 ByteBuilder& append(size_t count, std::byte b);
280 ByteBuilder& append(const void* bytes, size_t count);
283 ByteBuilder& append(ConstByteSpan bytes) { in append()
292 ByteBuilder& PutUint8(uint8_t val) { return WriteInOrder(val); } in PutUint8()
294 ByteBuilder& PutInt8(int8_t val) { return WriteInOrder(val); } in PutInt8()
297 ByteBuilder& PutUint16(uint16_t value,
[all …]
/external/pigweed/pw_bytes/
Dbyte_builder.cc19 ByteBuilder& ByteBuilder::append(size_t count, std::byte b) { in append()
25 ByteBuilder& ByteBuilder::append(const void* bytes, size_t count) { in append()
31 size_t ByteBuilder::ResizeForAppend(size_t bytes_to_append) { in ResizeForAppend()
46 void ByteBuilder::resize(size_t new_size) { in resize()
Dbyte_builder_test.cc32 TEST(ByteBuilder, EmptyBuffer_SizeAndMaxSizeAreCorrect) { in TEST() argument
33 ByteBuilder bb(ByteSpan{}); in TEST()
40 TEST(ByteBuilder, NonEmptyBufferOfSize0_SizeAndMaxSizeAreCorrect) { in TEST() argument
42 ByteBuilder bb(buffer); in TEST()
49 TEST(ByteBuilder, Constructor_InsertsEmptyBuffer) { in TEST() argument
51 ByteBuilder bb(buffer); in TEST()
56 TEST(ByteBuilder, EmptyBuffer_Append) { in TEST() argument
57 ByteBuilder bb(ByteSpan{}); in TEST()
67 TEST(ByteBuilder, NonEmptyBufferOfSize0_Append) { in TEST() argument
69 ByteBuilder bb(buffer); in TEST()
[all …]
Ddocs.rst28 .. cpp:class:: ByteBuilder
30 ``ByteBuilder`` is a class that facilitates building or reading arrays of
31 bytes in a fixed-size buffer. ByteBuilder handles reading and writing integers
36 ``ByteBuilder`` with an internally allocated buffer.
DBUILD.gn75 title = "Using pw::ByteBuilder"
81 label = "Using ByteBuilder vs not using it"
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DArrayBuilders.java21 private ByteBuilder _byteBuilder = null;
39 public ByteBuilder getByteBuilder() in getByteBuilder()
42 _byteBuilder = new ByteBuilder(); in getByteBuilder()
97 public final static class ByteBuilder class in ArrayBuilders
100 public ByteBuilder() { } in ByteBuilder() method in ArrayBuilders.ByteBuilder
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/util/
DArrayBuildersTest.java10 import com.fasterxml.jackson.databind.util.ArrayBuilders.ByteBuilder;
46 ByteBuilder b2 = builders.getByteBuilder(); in testBuilderAccess()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DPrimitiveArrayDeserializers.java490 ArrayBuilders.ByteBuilder builder = ctxt.getArrayBuilders().getByteBuilder(); in deserialize()