Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObjectPartialSerializer<Structure, KeepSerialized>

The ObjectPartialSerializer is meant to give you a an easy to use way to map an simple object structure to a binary representation by iteratively serializing / deserializing the properties of the object.

In contrast to the ObjectSerializer, this serializer will be keeping specific properties as array buffers and accept those fields as array buffers

Type parameters

  • Structure: object

  • KeepSerialized: StringKeys<Structure>

Hierarchy

Index

Constructors

constructor

Methods

arrayBufferToValue

  • arrayBufferToValue(arrayBuffer: ArrayBuffer): InsteadArrayBuffer<Structure, KeepSerialized>

clone

deserialize

  • deserialize(dv: DataView, offset: number): { offset: number; val: InsteadArrayBuffer<Structure, KeepSerialized> }

getByteSizeFromDataInBuffer

  • getByteSizeFromDataInBuffer(dv: DataView, offset: number): number

getSizeForValue

getStaticSize

  • getStaticSize(): number | undefined

serialize

  • serialize(dv: DataView, offset: number, val: InsteadArrayBuffer<Structure, KeepSerialized>): { offset: number }

typeCheck

valueToArrayBuffer

Generated using TypeDoc