MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Int32Slice

Method Int32Slice

utils/reader.go:238–245  ·  view source on GitHub ↗

Int32Slice reads an int32 slice.

()

Source from the content-addressed store, hash-verified

236
237// Int32Slice reads an int32 slice.
238func (reader *Reader) Int32Slice() []int32 {
239 count := reader.VariableUint()
240 vals := make([]int32, count)
241 for i := uint64(0); i < count; i++ {
242 vals[i] = reader.Int32()
243 }
244 return vals
245}
246
247// Int64Slice reads an int64 slice.
248func (reader *Reader) Int64Slice() []int64 {

Callers 1

TestWriterReaderFunction · 0.95

Calls 2

VariableUintMethod · 0.95
Int32Method · 0.95

Tested by 1

TestWriterReaderFunction · 0.76