MCPcopy Create free account
hub / github.com/apache/fory / Buffer

Method Buffer

cpp/fory/util/buffer.h:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 Buffer();
48
49 Buffer(uint8_t *data, uint32_t size, bool own_data = true)
50 : data_(data), size_(size), own_data_(own_data), wrapped_vector_(nullptr),
51 input_stream_(nullptr), output_stream_(nullptr) {
52 writer_index_ = 0;
53 reader_index_ = 0;
54 }
55
56 /// Wrap an existing vector for zero-copy serialization.
57 /// The buffer will append to the vector starting from its current size.

Callers

nothing calls this directly

Calls 5

get_bufferMethod · 0.80
lockMethod · 0.65
dataMethod · 0.45
sizeMethod · 0.45
bind_bufferMethod · 0.45

Tested by

no test coverage detected