Interface

IntegerEncoder

IntegerEncoder

Methods

# decodeInt32(plainText) → {number}

Decode an Int32 value from a PlainText
Parameters:
Name Type Description
plainText PlainText PlainText to decode

View Source integer-encoder.ts, line 104

Int32 value
number

# decodeUint32(plainText) → {number}

Decode an Uint32 value from a PlainText
Parameters:
Name Type Description
plainText PlainText PlainText to decode

View Source integer-encoder.ts, line 120

Uint32 value
number

# delete()

Delete the underlying WASM instance. Should be called before dereferencing this object to prevent the WASM heap from growing indefinitely.

View Source integer-encoder.ts, line 44

# encodeInt32(value, destinationopt) → {PlainText|void}

Encode an Int32 value to a PlainText
Parameters:
Name Type Attributes Description
value number Integer to encode
destination PlainText <optional>
PlainText to store the encoded data

View Source integer-encoder.ts, line 58

PlainText containing the result or void if a destination was supplied
PlainText | void

# encodeUint32(value, destinationopt) → {PlainText|void}

Encode an Uint32 value to a PlainText
Parameters:
Name Type Attributes Description
value number Unsigned integer to encode
destination PlainText <optional>
PlainText to store the encoded data

View Source integer-encoder.ts, line 81

PlainText containing the result or void if a destination was supplied
PlainText | void