[#211] blobstor: Rename GetRange to GetRangeBig

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-24 17:15:58 +03:00 committed by Alex Vanin
parent 2ba4ebc8c9
commit 0b130150ae
4 changed files with 95 additions and 87 deletions

View file

@ -50,3 +50,30 @@ type rwBlobovniczaID struct {
func (v *rwBlobovniczaID) SetBlobovniczaID(id *blobovnicza.ID) {
v.blobovniczaID = id
}
type roRange struct {
rng *objectSDK.Range
}
// Range returns range of the object payload.
func (r roRange) Range() *objectSDK.Range {
return r.rng
}
type rwRange struct {
roRange
}
// SetRange sets range of the object payload.
func (r *rwRange) SetRange(rng *objectSDK.Range) {
r.rng = rng
}
type rangeData struct {
data []byte
}
// RangeData returns data of the requested payload range.
func (d rangeData) RangeData() []byte {
return d.data
}