Home Reference Source Test
import AtomicInt64 from 'osc-js/src/atomic/int64.js'
public class | source

AtomicInt64

Extends:

Atomic → AtomicInt64

64-bit big-endian two's complement integer OSC Atomic Data Type

Test:

Constructor Summary

Public Constructor
public

Create an AtomicInt64 instance

Method Summary

Public Methods
public

Interpret the given number as packed binary data

public

unpack(dataView: DataView, initialOffset: number): number

Unpack binary data from DataView and read a Int64 number

Inherited Summary

From class Atomic
public
public

value: *

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: number) source

Create an AtomicInt64 instance

Override:

Atomic#constructor

Params:

NameTypeAttributeDescription
value number
  • optional

Initial integer value

Public Methods

public pack(): Uint8Array source

Interpret the given number as packed binary data

Override:

Atomic#pack

Return:

Uint8Array

Packed binary data

Test:

public unpack(dataView: DataView, initialOffset: number): number source

Unpack binary data from DataView and read a Int64 number

Params:

NameTypeAttributeDescription
dataView DataView

The DataView holding the binary representation of the value

initialOffset number
  • optional
  • default: 0

Offset of DataView before unpacking

Return:

number

Offset after unpacking

Test: