public static interface ExtraField.Segment
| Modifier and Type | Method and Description |
|---|---|
int |
getHeaderId()
Obtains the segment's header ID.
|
int |
size()
Obtains the size of the segment including the header ID.
|
void |
write(java.nio.ByteBuffer out)
Writes the segment to a buffer.
|
int getHeaderId()
int size()
void write(@Nonnull
java.nio.ByteBuffer out)
throws java.io.IOException
out - the buffer where to write the segment to; exactly size() bytes will
be writtenjava.io.IOException - failed to write segment data