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

Method BoolSlice

utils/reader.go:208–215  ·  view source on GitHub ↗

BoolSlice reads a bool slice.

()

Source from the content-addressed store, hash-verified

206
207// BoolSlice reads a bool slice.
208func (reader *Reader) BoolSlice() []bool {
209 count := reader.VariableUint()
210 vals := make([]bool, count)
211 for i := uint64(0); i < count; i++ {
212 vals[i] = reader.Bool()
213 }
214 return vals
215}
216
217// Int8Slice reads an int8 slice.
218func (reader *Reader) Int8Slice() []int8 {

Callers 1

TestWriterReaderFunction · 0.95

Calls 2

VariableUintMethod · 0.95
BoolMethod · 0.95

Tested by 1

TestWriterReaderFunction · 0.76