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