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

Method Int16Slice

utils/reader.go:228–235  ·  view source on GitHub ↗

Int16Slice reads an int16 slice.

()

Source from the content-addressed store, hash-verified

226
227// Int16Slice reads an int16 slice.
228func (reader *Reader) Int16Slice() []int16 {
229 count := reader.VariableUint()
230 vals := make([]int16, count)
231 for i := uint64(0); i < count; i++ {
232 vals[i] = reader.Int16()
233 }
234 return vals
235}
236
237// Int32Slice reads an int32 slice.
238func (reader *Reader) Int32Slice() []int32 {

Callers 1

TestWriterReaderFunction · 0.95

Calls 2

VariableUintMethod · 0.95
Int16Method · 0.95

Tested by 1

TestWriterReaderFunction · 0.76