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

Function WriteInt8Slice

go/fory/slice_primitive.go:754–760  ·  view source on GitHub ↗

WriteInt8Slice writes []int8 to buffer using ARRAY protocol

(buf *ByteBuffer, value []int8)

Source from the content-addressed store, hash-verified

752
753// WriteInt8Slice writes []int8 to buffer using ARRAY protocol
754func WriteInt8Slice(buf *ByteBuffer, value []int8) {
755 size := len(value)
756 buf.WriteLength(size)
757 if size > 0 {
758 buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size))
759 }
760}
761
762// ReadInt8Slice reads []int8 from buffer using ARRAY protocol
763func ReadInt8Slice(buf *ByteBuffer, err *Error) []int8 {

Callers 3

WriteDataMethod · 0.85
SerializeFunction · 0.85
WriteInt8SliceMethod · 0.85

Calls 3

SliceMethod · 0.80
WriteLengthMethod · 0.45
WriteBinaryMethod · 0.45

Tested by

no test coverage detected