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

Function WriteBoolSlice

go/fory/slice_primitive.go:731–737  ·  view source on GitHub ↗

WriteBoolSlice writes []bool to buffer using ARRAY protocol

(buf *ByteBuffer, value []bool)

Source from the content-addressed store, hash-verified

729
730// WriteBoolSlice writes []bool to buffer using ARRAY protocol
731func WriteBoolSlice(buf *ByteBuffer, value []bool) {
732 size := len(value)
733 buf.WriteLength(size)
734 if size > 0 {
735 buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size))
736 }
737}
738
739// ReadBoolSlice reads []bool from buffer using ARRAY protocol
740func ReadBoolSlice(buf *ByteBuffer, err *Error) []bool {

Callers 4

WriteDataMethod · 0.85
SerializeFunction · 0.85
WriteBoolSliceMethod · 0.85

Calls 3

SliceMethod · 0.80
WriteLengthMethod · 0.45
WriteBinaryMethod · 0.45

Tested by 1