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

Function readInt8ListValues

go/fory/slice_primitive_list.go:491–503  ·  view source on GitHub ↗
(buf *ByteBuffer, err *Error, length int, hasNull bool)

Source from the content-addressed store, hash-verified

489}
490
491func readInt8ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []int8 {
492 result := make([]int8, length)
493 if !hasNull {
494 buf.Read(unsafe.Slice((*byte)(unsafe.Pointer(&result[0])), length))
495 return result
496 }
497 for i := 0; i < length; i++ {
498 if buf.ReadInt8(err) != NullFlag {
499 result[i] = buf.ReadInt8(err)
500 }
501 }
502 return result
503}
504
505func writeUint8ListValues(buf *ByteBuffer, value []byte) {
506 if len(value) > 0 {

Callers 1

readValuesMethod · 0.85

Calls 3

SliceMethod · 0.80
ReadMethod · 0.65
ReadInt8Method · 0.45

Tested by

no test coverage detected