func UnmarshalBlock(dst *Block, src []byte) ([]byte, error) {
	tail, err := dst.bh.Unmarshal(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal blockHeader: %s", err)
	}
	src = tail

	tail, tds, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal timestampsData: %s", err)
	}
	dst.timestampsData = append(dst.timestampsData[:0], tds...)
	src = tail

	tail, vd, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal valuesData: %s", err)
	}
	dst.valuesData = append(dst.valuesData[:0], vd...)
	src = tail

	return src, nil
}
// UnmarshalBlock unmarshal Block from src to dst.
//
// dst.UnmarshalData isn't called on the block.
UnmarshalBlock unmarshal Block from src to dst.

dst.UnmarshalData isn't called on the block.
// UnmarshalBlock unmarshal Block from src to dst . // // dst . UnmarshalData isn ' t called on the block .
func UnmarshalBlock(dst *Block, src []byte) ([]byte, error) {
	tail, err := dst.bh.Unmarshal(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal blockHeader: %s", err)
	}
	src = tail
	tail, tds, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal timestampsData: %s", err)
	}
	dst.timestampsData = append(dst.timestampsData[:0], tds...)
	src = tail
	tail, vd, err := encoding.UnmarshalBytes(src)
	if err != nil {
		return tail, fmt.Errorf("cannot unmarshal valuesData: %s", err)
	}
	dst.valuesData = append(dst.valuesData[:0], vd...)
	src = tail
	return src, nil
}
func UnmarshalBlock ( dst * Block , src [ ] byte ) ( [ ] byte , error ) { tail , err := dst . bh . Unmarshal ( src ) if err != nil { return tail , fmt . Errorf ( " " , err ) } src = tail tail , tds , err := encoding . UnmarshalBytes ( src ) if err != nil { return tail , fmt . Errorf ( " " , err ) } dst . timestampsData = append ( dst . timestampsData [ : 0 ] , tds ... ) src = tail tail , vd , err := encoding . UnmarshalBytes ( src ) if err != nil { return tail , fmt . Errorf ( " " , err ) } dst . valuesData = append ( dst . valuesData [ : 0 ] , vd ... ) src = tail return src , nil }
UnmarshalBlock unmarshal Block from src to dst.
UnmarshalBlock unmarshal Block from src to dst .