TGNDocument class

Document’s purpose is to read data from a serialized HiBON. Document guarantees immutability of HiBON.

Inheritance
Implemented types

Constructors

TGNDocument(TGNDocumentFfi _documentFfi, IPointerManager _pointerManager, IErrorMessage _errorMessage, Uint8List hibonBuffer)
TGNDocument.init(Uint8List hibonBuffer)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope IScope
finalinherited

Methods

dispose() → void
Dispose the document.
override
getAsString(TextFormat textFormat) String
Get document as string by a format.
override
getElementByIndex(int index) IDocumentElement
Get a document element from index.
override
getElementByKey(String key) IDocumentElement
Get a Document element.
override
getRecordName() String
Get document record type.
override
getVersion() int
Return the version of the document.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() TGNErrorCode
Get document error code.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited