internal/da/da.go
func Read(r io.Reader) (DoubleArray, error) {
	var sz int64
	if e := binary.Read(r, binary.LittleEndian, &sz); e != nil {
		return DoubleArray{}, e
	}
	//fmt.Println("read data len:", sz)
	d := make(DoubleArray, sz, sz)
	for i := range d {
		if e := binary.Read(r, binary.LittleEndian, &d[i].Base); e != nil {
			return d, e
		}
		if e := binary.Read(r, binary.LittleEndian, &d[i].Check); e != nil {
			return d, e
		}
	}
	return d, nil
}
func Read(r io.Reader) (DoubleArray, error) {
	var sz int64
	if e := binary.Read(r, binary.LittleEndian, &sz); e != nil {
		return DoubleArray{}, e
	}
	//fmt.Println("read data len:", sz)
	d := make(DoubleArray, sz, sz)
	for i := range d {
		if e := binary.Read(r, binary.LittleEndian, &d[i].Base); e != nil {
			return d, e
		}
		if e := binary.Read(r, binary.LittleEndian, &d[i].Check); e != nil {
			return d, e
		}
	}
	return d, nil
}
// Read loads a double array.