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

Function writeInt8ListValues

go/fory/slice_primitive_list.go:485–489  ·  view source on GitHub ↗
(buf *ByteBuffer, value []int8)

Source from the content-addressed store, hash-verified

483}
484
485func writeInt8ListValues(buf *ByteBuffer, value []int8) {
486 if len(value) > 0 {
487 buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), len(value)))
488 }
489}
490
491func readInt8ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []int8 {
492 result := make([]int8, length)

Callers 1

writeValuesMethod · 0.85

Calls 2

SliceMethod · 0.80
WriteBinaryMethod · 0.45

Tested by

no test coverage detected