func (b *int32Accumulator) Accumulate(d encoding.Decoder, nullmask []bool, count uint) error { buff := make([]int32, count) read, err := d.DecodeInt32(buff) if err != nil { return fmt.Errorf("%s.DecodeInt32:%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 }