[#7] Client cut internal
This commit is contained in:
parent
545e647d7b
commit
b69d22966f
15 changed files with 216 additions and 36 deletions
|
@ -22,7 +22,7 @@ public class Object
|
|||
|
||||
public void SetParent(LargeObject largeObject)
|
||||
{
|
||||
Header.Split!.ParentHeader = largeObject.Header;
|
||||
Header.Split.ParentHeader = largeObject.Header;
|
||||
}
|
||||
|
||||
public ObjectId? GetParentId()
|
||||
|
@ -41,10 +41,11 @@ public class LargeObject(ContainerId container) : Object(container, [])
|
|||
this.payloadHash.TransformBlock(bytes, 0, count, bytes, 0);
|
||||
}
|
||||
|
||||
public void CalculateHash()
|
||||
public LargeObject CalculateHash()
|
||||
{
|
||||
this.payloadHash.TransformFinalBlock([], 0, 0);
|
||||
Header.PayloadCheckSum = this.payloadHash.Hash;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ulong PayloadLength
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue