com.neeve.pkt
Class PktSubheader
java.lang.Object
com.neeve.util.UtlListElement
com.neeve.pkt.PktSerializable
com.neeve.pkt.PktBody
com.neeve.pkt.PktSubheader
- All Implemented Interfaces:
- com.neeve.io.IOElasticBuffer.Initializer, com.neeve.io.IOElasticBuffer.Sizer
- Direct Known Subclasses:
- PktSubheaderFixed, PktSubheaderVariable
public abstract class PktSubheader
- extends PktBody
Base class for packet subheaders.
- Threading:
- Packet bodies are not safe for concurrent access by
multiple threads.
Method Summary |
abstract int |
getSerializedLength(ByteBuffer buffer,
int offset)
Get the serialized length from the serialized form |
static int |
getType(ByteBuffer buffer,
int offset)
Get the subheader type from a serialized subheader preamble. |
Methods inherited from class com.neeve.pkt.PktBody |
deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, dump, getBuffer, getInitialBufferLength, getSerializedLength, getType, initializeBuffer, isNative, reset, serialize, serialize, serialize, serialize, serialize, serialize, serialize |
V1
public static final byte V1
- See Also:
- Constant Field Values
VERSION
public static final byte VERSION
- See Also:
- Constant Field Values
PREAMBLE_LENGTH_V1
public static final int PREAMBLE_LENGTH_V1
- See Also:
- Constant Field Values
PREAMBLE_LENGTH
public static final int PREAMBLE_LENGTH
- See Also:
- Constant Field Values
getType
public static final int getType(ByteBuffer buffer,
int offset)
- Get the subheader type from a serialized subheader preamble.
- Returns:
- Returns the packet type
- Threading:
- This method is not safe for concurrent access by
multiple threads
getSerializedLength
public abstract int getSerializedLength(ByteBuffer buffer,
int offset)
- Get the serialized length from the serialized form
Copyright © 2016 Neeve Research, LLC. All Rights Reserved.