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

Function writeUint64FixedListValues

go/fory/slice_primitive_list.go:763–774  ·  view source on GitHub ↗
(buf *ByteBuffer, value []uint64)

Source from the content-addressed store, hash-verified

761}
762
763func writeUint64FixedListValues(buf *ByteBuffer, value []uint64) {
764 size := len(value) * 8
765 if len(value) > 0 {
766 if isLittleEndian {
767 buf.WriteBinary(unsafe.Slice((*byte)(unsafe.Pointer(&value[0])), size))
768 } else {
769 for _, v := range value {
770 buf.WriteInt64(int64(v))
771 }
772 }
773 }
774}
775
776func readUint64ListValues(buf *ByteBuffer, err *Error, length int, hasNull bool, typeID TypeId) []uint64 {
777 result := make([]uint64, length)

Callers 1

writeUint64ListValuesFunction · 0.85

Calls 4

SliceMethod · 0.80
int64Function · 0.50
WriteBinaryMethod · 0.45
WriteInt64Method · 0.45

Tested by

no test coverage detected