| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.impl.BinaryFrames |
Do not use.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
BinaryFrames()
Create an empty binary frames.
| |||||||||||
|
BinaryFrames(byte[] data)
Create a binary frames object and add a first array of bytes to it.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BinaryFrames |
add(byte[] data)
Add a frame to the object.
| ||||||||||
| int |
count()
Determine the number of frames in this object.
| ||||||||||
| static BinaryFrames |
fromBytes(byte[] serializedData)
Deserialize a stream of bytes into a binary frames object.
| ||||||||||
| byte[] |
get(int index)
Read the frame at the given position.
| ||||||||||
| byte[] |
pull(int index)
Extract the frame at the given position.
| ||||||||||
| byte[] |
pullCurrent()
Extract the frame at offset 0.
| ||||||||||
| byte[] |
toBytes()
Serialize the object to a byte array representing the list of frames.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.IBinaryFrames
| |||||||||||
Create an empty binary frames.
Create a binary frames object and add a first array of bytes to it.
| data | frame |
|---|
Add a frame to the object.
| data | the data frame to add |
|---|
Determine the number of frames in this object.
Deserialize a stream of bytes into a binary frames object.
| serializedData | data |
|---|
Read the frame at the given position. Throws if index is out of range.
| index | frame index |
|---|
Extract the frame at the given position. Calling method effectively decrements the number of frames contained in this object. Throws if index is out of range.
| index | frame index |
|---|
Extract the frame at offset 0. Throws if index is out of range.
Serialize the object to a byte array representing the list of frames.