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
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