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

Function writeInt32ListValues

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

Source from the content-addressed store, hash-verified

591}
592
593func writeInt32ListValues(buf *ByteBuffer, value []int32, typeID TypeId) {
594 if typeID == INT32 {
595 writeInt32FixedListValues(buf, value)
596 return
597 }
598 for _, v := range value {
599 buf.WriteVarint32(v)
600 }
601}
602
603func writeInt32FixedListValues(buf *ByteBuffer, value []int32) {
604 size := len(value) * 4

Callers 1

writeValuesMethod · 0.85

Calls 2

WriteVarint32Method · 0.45

Tested by

no test coverage detected