Properties
byteOffset
byteOffset: number
Readonly
dataView
dataView: DataView
Readonly
game
Readonly
metadata
Readonly
version
Methods
convertUint8ArrayToString
- convertUint8ArrayToString(bytes: Uint8Array): string
-
Returns string
load
- load(object: any, objectKey: any, data: string | Uint8Array): void
-
Parameters
-
object: any
-
objectKey: any
-
data: string | Uint8Array
Returns void
loadFromString
- loadFromString(object: any, objectKey: any, data: string): void
-
Parameters
-
object: any
-
objectKey: any
-
data: string
Returns void
loadFromUint8Array
- loadFromUint8Array(object: any, objectKey: any, bytes: Uint8Array): void
-
Parameters
-
object: any
-
objectKey: any
-
bytes: Uint8Array
Returns void
readMap
- readMap(object: any, key: any): Map<any, any>
-
Returns Map<any, any>
readProperty
- readProperty(object: any, key: any): void
-
Returns void
readString
- readString(): string
-
Returns string
saveToString
- saveToString(object: any, objectKey: any): undefined | string
-
Parameters
-
object: any
-
objectKey: any
Returns undefined | string
saveToUint8Array
- saveToUint8Array(object: any, objectKey: any): undefined | Uint8Array
-
Parameters
-
object: any
-
objectKey: any
Returns undefined | Uint8Array
writeMap
- writeMap(value: Map<any, any>): void
-
Returns void
writeProperty
- writeProperty(object: any, key: any): void
-
Returns void
writeString
- writeString(value: string): void
-
Returns void