IHibon class abstract
The interface for a Hibon (Hash invariant Binary Object Notation) object. Hibon is a binary format used for transfering and storing data.
- Implementers
Constructors
- IHibon()
Properties
Methods
-
addArrayByIndex(
int index, Uint8List array) → void - Adds a byte array to the Hibon object by index.
-
addArrayByKey(
String key, Uint8List array) → void - Adds a byte array to the Hibon object by key.
-
addBigint(
String key, BigInt value) → void - Adds a bigint to the Hibon object.
-
addBool(
String key, bool value) → void - Adds a bool to the Hibon object.
-
addDocumentBufferByIndex(
int index, Uint8List buffer) → void - Adds a document buffer to the Hibon object by index.
-
addDocumentBufferByKey(
String key, Uint8List buffer) → void - Adds a document buffer to the Hibon object by key.
-
addFloat<
T> (String key, double value) → void - Adds a float to the Hibon object. Supports:
-
addHibonByIndex(
int index, IHibon hibon) → void - Adds an inner Hibon object to the Hibon object by index.
-
addHibonByKey(
String key, IHibon hibon) → void - Adds an inner Hibon object to the Hibon object by key.
-
addInt<
T> (String key, int value) → void - Adds an int to the Hibon object. Supports:
-
addString(
String key, String value) → void - Adds a string to the Hibon object.
-
addTime(
String key, int time) → void - Adds a time to the Hibon object.
-
create(
) → void - Initializes the Hibon object.
-
createFromJson(
String json) → void - Creates a Hibon from a json string.
-
dispose(
) → void - Frees the memory externally allocated for the Hibon object.
-
getAsDocumentBuffer(
) → Uint8List - Returns the current Hibon object as a document buffer.
-
getAsString(
[TextFormat format]) → String - Returns the Hibon object as a string.
-
hasMemberByIndex(
int index) → bool - Checks if the Hibon object has a member with the given index.
-
hasMemberByKey(
String key) → bool - Checks if the Hibon object has a member with the given key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeByIndex(
int index) → void - Removes a member from the Hibon object by index.
-
removeByKey(
String key) → void - Removes a member from the Hibon object by key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited