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

Method write_int8

cpp/fory/util/buffer.h:693–697  ·  view source on GitHub ↗

write int8_t value to buffer at current writer index. Automatically grows buffer and advances writer index.

Source from the content-addressed store, hash-verified

691 /// write int8_t value to buffer at current writer index.
692 /// Automatically grows buffer and advances writer index.
693 FORY_ALWAYS_INLINE void write_int8(int8_t value) {
694 grow(1);
695 unsafe_put_byte(writer_index_, static_cast<uint8_t>(value));
696 increase_writer_index(1);
697 }
698
699 /// write uint16_t value as fixed 2 bytes to buffer at current writer index.
700 /// Automatically grows buffer and advances writer index.

Callers 2

test_bufferFunction · 0.95
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_bufferFunction · 0.76
TEST_FFunction · 0.36