diff --git a/pkg/object/raw.go b/pkg/object/raw.go index 0ff3ca00..a6f3e9d8 100644 --- a/pkg/object/raw.go +++ b/pkg/object/raw.go @@ -22,6 +22,11 @@ func NewRawFromV2(oV2 *object.Object) *RawObject { } } +// NewRawFrom wraps Object instance to RawObject. +func NewRawFrom(obj *Object) *RawObject { + return NewRawFromV2(obj.ToV2()) +} + // NewRaw creates and initializes blank RawObject. // // Works similar as NewRawFromV2(new(Object)).