Atomic
Direct Subclass:
Base class for OSC Atomic Data Types
Test:
Constructor Summary
Public Constructor | ||
public |
constructor(value: *) Create an Atomic instance |
Method Summary
Public Methods | ||
public |
pack(method: string, byteLength: number): Uint8Array Interpret the given value of this entity as packed binary data |
|
public |
unpackWithMethod(dataView: DataView, method: string, byteLength: number, initialOffset: number): number Unpack binary data from DataView according to the given format |
Public Constructors
public constructor(value: *) source
Create an Atomic instance
Params:
Name | Type | Attribute | Description |
value | * |
|
Initial value of any type |
Public Methods
public pack(method: string, byteLength: number): Uint8Array source
Interpret the given value of this entity as packed binary data
public unpackWithMethod(dataView: DataView, method: string, byteLength: number, initialOffset: number): number source
Unpack binary data from DataView according to the given format
Params:
Name | Type | Attribute | Description |
dataView | DataView | The DataView holding the binary representation of the value |
|
method | string | The DataView method to read the format from the ArrayBuffer |
|
byteLength | number | Size of array in bytes |
|
initialOffset | number |
|
Offset of DataView before unpacking |