func (b *boolAccumulator) Accumulate(d encoding.Decoder, nullmask []bool, count uint) error { buff := make([]bool, count) read, err := d.DecodeBool(b.buff) if err != nil { return fmt.Errorf("%v:%s", d, err) } if read != count { return fmt.Errorf("could not read all the expected values (%d) only %d", count, read) } b.buff = append(b.buff, buff...) b.nullmask = append(b.nullmask, nullmask...) return nil }