Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Serializer

Hierarchy

  • Serializer

Implements

Index

Constructors

constructor

Properties

byteOffset

byteOffset: number

dataView

dataView: DataView

Readonly version

version: string

Methods

convertUint8ArrayToString

  • convertUint8ArrayToString(bytes: Uint8Array, length?: number): string
  • Parameters

    • bytes: Uint8Array
    • Default value length: number = bytes.byteLength

    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

readArrayBuffer

  • readArrayBuffer(): any
  • Returns any

readArrayV2

  • readArrayV2(object: any, key: any): void
  • Parameters

    • object: any
    • key: any

    Returns void

readArrayV3

  • readArrayV3(object: any, key: any): void
  • Parameters

    • object: any
    • key: any

    Returns void

readArrayV4

  • readArrayV4(object: any, key: any): void
  • Parameters

    • object: any
    • key: any

    Returns void

readMap

  • readMap(object: any, key: any): Map<any, any>
  • Parameters

    • object: any
    • key: any

    Returns Map<any, any>

readObject

  • readObject(object: any, key: any): void
  • Parameters

    • object: any
    • key: any

    Returns void

readProperty

  • readProperty(object: any, key: any): void
  • Parameters

    • object: any
    • key: any

    Returns void

readSet

  • readSet(object: any, key: any): Set<any>
  • Parameters

    • object: any
    • key: any

    Returns Set<any>

readString

  • readString(): string
  • Returns string

saveToString

  • saveToString(object: any, objectKey: any): string | undefined
  • Parameters

    • object: any
    • objectKey: any

    Returns string | undefined

saveToUint8Array

  • saveToUint8Array(object: any, objectKey: any): Uint8Array | undefined
  • Parameters

    • object: any
    • objectKey: any

    Returns Uint8Array | undefined

writeArrayBuffer

  • writeArrayBuffer(typedArray: { BYTES_PER_ELEMENT: number; byteLength: number }): void
  • Parameters

    • typedArray: { BYTES_PER_ELEMENT: number; byteLength: number }
      • BYTES_PER_ELEMENT: number
      • byteLength: number

    Returns void

writeArrayV4

  • Parameters

    Returns void

writeMap

  • writeMap(value: Map<any, any>, chain?: string[]): void
  • Parameters

    • value: Map<any, any>
    • Optional chain: string[]

    Returns void

writeObject

  • writeObject(object: any, objectKey: string, parentObject: any, chain?: string[]): void
  • Parameters

    • object: any
    • objectKey: string
    • parentObject: any
    • Optional chain: string[]

    Returns void

writeProperty

  • writeProperty(object: any, key: any, chain?: string[], flags?: SavePropertyFlag, propertyIsJitDeserialized?: undefined | false | true): void
  • Parameters

    • object: any
    • key: any
    • Optional chain: string[]
    • Optional flags: SavePropertyFlag
    • Optional propertyIsJitDeserialized: undefined | false | true

    Returns void

writeSet

  • writeSet(value: Set<any>, chain?: string[]): void
  • Parameters

    • value: Set<any>
    • Optional chain: string[]

    Returns void

writeString

  • writeString(value: string): void
  • Parameters

    • value: string

    Returns void

Generated using TypeDoc