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

Function readUint8ListValues

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

Source from the content-addressed store, hash-verified

509}
510
511func readUint8ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool) []byte {
512 result := make([]byte, length)
513 if !hasNull {
514 buf.Read(result)
515 return result
516 }
517 for i := 0; i < length; i++ {
518 if buf.ReadInt8(err) != NullFlag {
519 result[i] = buf.ReadUint8(err)
520 }
521 }
522 return result
523}
524
525func writeInt16ListValues(buf *ByteBuffer, value []int16) {
526 size := len(value) * 2

Callers 1

readValuesMethod · 0.85

Calls 3

ReadUint8Method · 0.80
ReadMethod · 0.65
ReadInt8Method · 0.45

Tested by

no test coverage detected