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

Function writeInt64FixedListValues

go/fory/slice_primitive_list.go:706–717  ·  view source on GitHub ↗
(buf *ByteBuffer, value []int64)

Source from the content-addressed store, hash-verified

704}
705
706func writeInt64FixedListValues(buf *ByteBuffer, value []int64) {
707 size := len(value) * 8
708 if len(value) > 0 {
709 if isLittleEndian {
710 buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size))
711 } else {
712 for _, v := range value {
713 buf.WriteInt64(v)
714 }
715 }
716 }
717}
718
719func readInt64ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool, typeID TypeId) []int64 {
720 result := make([]int64, length)

Callers 1

writeInt64ListValuesFunction · 0.85

Calls 3

SliceMethod · 0.80
WriteBinaryMethod · 0.45
WriteInt64Method · 0.45

Tested by

no test coverage detected