encodeObjectSKey
Encodes an object with optional fields using integer keys.
export function encodeObjectSKey(object: Map<string, Encodeable> | Record<string, Encodeable>): number[]
Arguments
Name | Type | Description |
---|---|---|
object | Map<string, Encodeable> | Record<string, Encodeable> | A Map with integer keys representing the field indices. |
Return value
number[]