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

Method write_int16

cpp/fory/util/buffer.h:709–713  ·  view source on GitHub ↗

write int16_t value as fixed 2 bytes to buffer at current writer index. Automatically grows buffer and advances writer index.

Source from the content-addressed store, hash-verified

707 /// write int16_t value as fixed 2 bytes to buffer at current writer index.
708 /// Automatically grows buffer and advances writer index.
709 FORY_ALWAYS_INLINE void write_int16(int16_t value) {
710 grow(2);
711 unsafe_put<int16_t>(writer_index_, value);
712 increase_writer_index(2);
713 }
714
715 /// write int24 value as fixed 3 bytes to buffer at current writer index.
716 /// Automatically grows buffer and advances writer index.

Callers 2

test_bufferFunction · 0.95
run_test_bufferFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_bufferFunction · 0.76
run_test_bufferFunction · 0.36