public interface IAggregatedFrame
Modifier and Type | Method and Description |
---|---|
void |
addFragment(byte[] payload)
Adds a new payload data fragment for future aggregation.
|
List<byte[]> |
getFragments()
Returns all payload data fragments already stored in this frame.
|
byte[] |
getPayload()
Returns the aggregated payload data from all payload data fragments already
stored in this frame.
|
int |
getPayloadLength()
Returns the total length of all payload data fragments already stored in this frame.
|
void addFragment(byte[] payload)
payload
- the new payload data fragmentList<byte[]> getFragments()
NOTE: It is expected that, due to possible optimizations, the number of
return fragments may change after executing of the getPayload()
method. However, in such a case, the aggregated payload data should
still be the same.
int getPayloadLength()
byte[] getPayload()
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.