Package | Description |
---|---|
brown.tracingplane.baggageprotocol |
Defines an encoding scheme for nested data structures using atoms.
|
Modifier and Type | Method and Description |
---|---|
static java.nio.ByteBuffer |
HeaderSerialization.serialize(BagKey.Keyed bagKey,
int level)
Serialize the header atom, including prefix byte, for the provided bagKey and level
|
static int |
HeaderSerialization.serializedSize(BagKey.Keyed bagKey)
Calculates the serialized size of a Keyed header atom including its prefix
|
static java.nio.ByteBuffer |
HeaderSerialization.serializePayload(BagKey.Keyed bagKey)
Serialize the atom payload for the provided bagkey, excluding atom prefix.
|
static void |
HeaderSerialization.writeAtom(java.nio.ByteBuffer buf,
BagKey.Keyed bagKey,
int level)
Write an atom to the provided buffer for the specified bagKey and level.
|
static void |
HeaderSerialization.writeAtomPayload(java.nio.ByteBuffer buf,
BagKey.Keyed bagKey)
Write the payload of an Keyed header atom to the provided buf
|
static void |
HeaderSerialization.writeAtomPrefix(java.nio.ByteBuffer buf,
BagKey.Keyed bagKey,
int level)
Write the prefix byte of a Keyed header atom to the provided buf
|