public abstract class PktBodyFixed extends PktBody
This class represents a fixed length packet body. Packet bodies that have fixed length content should extend from this class. When created, this class instantiates and stores a buffer to store the body contents. This buffer is of a fixed length equal to the total (fixed) length of the body contents. The packet body implementation should index the individual elements of the body into this buffer and use absolute setter and getter methods to set and get body element values.
PktSerializable.DeserializeContext, PktSerializable.SerializeContext
count, head, next, prev
Modifier and Type | Method and Description |
---|---|
int |
doGetSerializedLength()
Implementation of
PktBody.doGetSerializedLength()
This method returns the fixed length of the body contents. |
deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, dump, getBuffer, getInitialBufferLength, getSerializedLength, getType, initializeBuffer, isNative, reset, serialize, serialize, serialize, serialize, serialize, serialize, serialize
deserialize, getDeserializationPolicy, getSerializationPolicy, isValidDeserializationPolicy, isValidSerializationPolicy, serialize, setDeserializationPolicy, setSerializationPolicy
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
public final int doGetSerializedLength()
PktBody.doGetSerializedLength()
This method returns the fixed length of the body contents.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.