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

Function writeInt64ListValues

go/fory/slice_primitive_list.go:691–704  ·  view source on GitHub ↗
(buf *ByteBuffer, value []int64, typeID TypeId)

Source from the content-addressed store, hash-verified

689}
690
691func writeInt64ListValues(buf *ByteBuffer, value []int64, typeID TypeId) {
692 switch typeID {
693 case INT64:
694 writeInt64FixedListValues(buf, value)
695 case TAGGED_INT64:
696 for _, v := range value {
697 buf.WriteTaggedInt64(v)
698 }
699 default:
700 for _, v := range value {
701 buf.WriteVarint64(v)
702 }
703 }
704}
705
706func writeInt64FixedListValues(buf *ByteBuffer, value []int64) {
707 size := len(value) * 8

Callers 2

writeValuesMethod · 0.85
writeIntListValuesFunction · 0.85

Calls 3

WriteTaggedInt64Method · 0.45
WriteVarint64Method · 0.45

Tested by

no test coverage detected