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

Function write_chunk_size

cpp/fory/serialization/map_serializer.h:99–103  ·  view source on GitHub ↗

write chunk size at header offset

Source from the content-addressed store, hash-verified

97
98/// write chunk size at header offset
99inline void write_chunk_size(WriteContext &ctx, size_t header_offset,
100 uint8_t size) {
101 // header_offset points to the header byte, size is at offset + 1
102 ctx.buffer().unsafe_put_byte(header_offset + 1, size);
103}
104
105/// Check if we need to write type info for a field type
106/// Keep as constexpr for compile time evaluation or constant folding

Callers 4

write_map_data_fastFunction · 0.70
write_map_data_slowFunction · 0.70

Calls 2

unsafe_put_byteMethod · 0.80
bufferMethod · 0.45

Tested by

no test coverage detected