A collection of bytes.
More...
◆ ByteCollection() [1/2]
fm.liveswitch.ByteCollection.ByteCollection |
( |
| ) |
|
◆ ByteCollection() [2/2]
fm.liveswitch.ByteCollection.ByteCollection |
( |
byte[] |
buffer | ) |
|
◆ add() [1/2]
void fm.liveswitch.ByteCollection.add |
( |
byte |
b | ) |
|
Adds a byte to the collection.
- Parameters
-
◆ add() [2/2]
void fm.liveswitch.ByteCollection.add |
( |
int |
b | ) |
|
Adds a byte to the collection.
- Parameters
-
◆ addRange() [1/2]
void fm.liveswitch.ByteCollection.addRange |
( |
byte[] |
buffer | ) |
|
Adds a range of bytes to the collection.
- Parameters
-
buffer | The range of bytes to add. |
◆ addRange() [2/2]
void fm.liveswitch.ByteCollection.addRange |
( |
ByteCollection |
collection | ) |
|
Adds a byte collection to this collection.
- Parameters
-
collection | The byte collection to add. |
◆ get()
byte fm.liveswitch.ByteCollection.get |
( |
int |
index | ) |
|
Gets a byte from the collection.
- Parameters
-
- Returns
◆ getCount()
int fm.liveswitch.ByteCollection.getCount |
( |
| ) |
|
Gets the number of bytes in the collection.
◆ getRange()
byte [] fm.liveswitch.ByteCollection.getRange |
( |
int |
index, |
|
|
int |
count |
|
) |
| |
Gets a range of bytes from the collection.
- Parameters
-
index | The index to start getting. |
count | The number of bytes to get. |
- Returns
◆ insertRange() [1/2]
void fm.liveswitch.ByteCollection.insertRange |
( |
int |
index, |
|
|
byte[] |
buffer |
|
) |
| |
Inserts a range of bytes into the collection.
- Parameters
-
index | The index to start adding. |
buffer | The range of bytes to insert. |
◆ insertRange() [2/2]
void fm.liveswitch.ByteCollection.insertRange |
( |
int |
index, |
|
|
ByteCollection |
collection |
|
) |
| |
Inserts a byte collection into this collection.
- Parameters
-
index | The index to start adding. |
collection | The byte collection to insert. |
◆ removeRange()
void fm.liveswitch.ByteCollection.removeRange |
( |
int |
index, |
|
|
int |
count |
|
) |
| |
Removes a range of bytes from the collection.
- Parameters
-
index | The index to start removing. |
count | The number of bytes to remove. |
◆ toArray()
byte [] fm.liveswitch.ByteCollection.toArray |
( |
| ) |
|
Converts this collection to an array.
- Returns