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

AtomicFloat32

Extends:

Atomic → AtomicFloat32

32-bit big-endian IEEE 754 floating point number OSC Atomic Data Type

Test:

Constructor Summary

Public Constructor
public

Create an AtomicFloat32 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 Float32 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

unpack(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 AtomicFloat32 instance

Override:

Atomic#constructor

Params:

NameTypeAttributeDescription
value number
  • optional

Float number

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 Float32 number

Override:

Atomic#unpack

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: