new DigestTree()
- Source:
Methods
update(The, sessionNo, sequenceNo)
Update the digest tree and recompute the root digest. If the combination of dataPrefix
and sessionNo already exists in the tree then update its sequenceNo (only if the given
sequenceNo is newer), otherwise add a new node.
Parameters:
Name | Type | Description |
---|---|---|
The |
string | name prefix. |
sessionNo |
int | The session number. |
sequenceNo |
int | The sequence number. |
- Source:
Returns:
True if the digest tree is updated, false if not