[#205] object: Initial EC implementation

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-02-28 14:51:48 +03:00 committed by Evgenii Stratonikov
parent e9be3e6d94
commit bd2d350b09
12 changed files with 933 additions and 0 deletions

View file

@ -366,6 +366,14 @@ func (o *Object) Children() []oid.ID {
return res
}
func (o *Object) GetECHeader() *ECHeader {
v2 := (*object.Object)(o).GetHeader().GetEC()
var ec ECHeader
_ = ec.ReadFromV2(v2) // Errors is checked on unmarshal.
return &ec
}
// SetChildren sets list of the identifiers of the child objects.
func (o *Object) SetChildren(v ...oid.ID) {
var (