src/client/pfs.go
func (c APIClient) ReadObjects(hashes []string, offset uint64, size uint64) ([]byte, error) {
	var buffer bytes.Buffer
	if err := c.GetObjects(hashes, offset, size, 0, &buffer); err != nil {
		return nil, err
	}
	return buffer.Bytes(), nil
}
func (c APIClient) ReadObjects(hashes []string, offset uint64, size uint64) ([]byte, error) {
	var buffer bytes.Buffer
	if err := c.GetObjects(hashes, offset, size, 0, &buffer); err != nil {
		return nil, err
	}
	return buffer.Bytes(), nil
}
func ( c APIClient ) ReadObjects ( hashes [ ] string , offset uint64 , size uint64 ) ( [ ] byte , error ) { var buffer bytes . Buffer if err := c . GetObjects ( hashes , offset , size , 0 , & buffer ) ; err != nil { return nil , err } return buffer . Bytes ( ) , nil }
// ReadObjects gets  several objects by hash and returns them directly as []byte.
ReadObjects gets several objects by hash and returns them directly as [] byte .