func (b *builder) unsafeSetValid(length int) {
	padToByte := min(8-(b.length%8), length)
	if padToByte == 8 {
		padToByte = 0
	}
	bits := b.nullBitmap.Bytes()
	for i := b.length; i < b.length+padToByte; i++ {
		bitutil.SetBit(bits, i)
	}

	start := (b.length + padToByte) / 8
	fastLength := (length - padToByte) / 8
	memory.Set(bits[start:start+fastLength], 0xff)

	newLength := b.length + length
	// trailing bytes
	for i := b.length + padToByte + (fastLength * 8); i < newLength; i++ {
		bitutil.SetBit(bits, i)
	}

	b.length = newLength
}
// unsafeSetValid sets the next length bits to valid in the validity bitmap.
unsafeSetValid sets the next length bits to valid in the validity bitmap.
// unsafeSetValid sets the next length bits to valid in the validity bitmap .
func (b *builder) unsafeSetValid(length int) {
	padToByte := min(8-(b.length%8), length)
	if padToByte == 8 {
		padToByte = 0
	}
	bits := b.nullBitmap.Bytes()
	for i := b.length; i < b.length+padToByte; i++ {
		bitutil.SetBit(bits, i)
	}
	start := (b.length + padToByte) / 8
	fastLength := (length - padToByte) / 8
	memory.Set(bits[start:start+fastLength], 0xff)
	newLength := b.length + length
	for i := b.length + padToByte + (fastLength * 8); i < newLength; i++ {
		bitutil.SetBit(bits, i)
	}
	b.length = newLength
}
func ( b * builder ) unsafeSetValid ( length int ) { padToByte := min ( 8 - ( b . length % 8 ) , length ) if padToByte == 8 { padToByte = 0 } bits := b . nullBitmap . Bytes ( ) for i := b . length ; i < b . length + padToByte ; i ++ { bitutil . SetBit ( bits , i ) } start := ( b . length + padToByte ) / 8 fastLength := ( length - padToByte ) / 8 memory . Set ( bits [ start : start + fastLength ] , 0xff ) newLength := b . length + length for i := b . length + padToByte + ( fastLength * 8 ) ; i < newLength ; i ++ { bitutil . SetBit ( bits , i ) } b . length = newLength }
unsafeSetValid sets the next length bits to valid in the validity bitmap.
unsafeSetValid sets the next length bits to valid in the validity bitmap .
// trailing bytes