/ fm / liveswitch / ByteCollection
Class: ByteCollection
fm.liveswitch.ByteCollection
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new ByteCollection(buffer?
: Uint8Array): ByteCollection
Parameters:
Name | Type |
---|---|
buffer? |
Uint8Array |
Returns: ByteCollection
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:6
Properties
_buffer
• Private
_buffer: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:6
Methods
add
▸ add(b
: number): void
Parameters:
Name | Type |
---|---|
b |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:17
addRange
▸ addRange(buffer
: Uint8Array): void
Parameters:
Name | Type |
---|---|
buffer |
Uint8Array |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:24
count
▸ count(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:14
get
▸ get(index
: number): number
Parameters:
Name | Type |
---|---|
index |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:63
getRange
▸ getRange(index
: number, count
: number): Uint8Array
Parameters:
Name | Type |
---|---|
index |
number |
count |
number |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:58
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:3
insertRange
▸ insertRange(index
: number, buffer
: Uint8Array): void
Parameters:
Name | Type |
---|---|
index |
number |
buffer |
Uint8Array |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:44
removeRange
▸ removeRange(index
: number, count
: number): void
Parameters:
Name | Type |
---|---|
index |
number |
count |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:36
toArray
▸ toArray(): Uint8Array
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/ByteCollection.ts:66