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.Indexed bagKey,
int level)
Serialize the header atom, including prefix byte, for the provided bagKey and level
|
static int |
HeaderSerialization.serializedSize(BagKey.Indexed bagKey)
Calculates the serialized size of an Indexed header atom including its prefix
|
static java.nio.ByteBuffer |
HeaderSerialization.serializePayload(BagKey.Indexed bagKey)
Serialize the atom payload for the provided bagkey, excluding atom prefix.
|
static void |
HeaderSerialization.writeAtom(java.nio.ByteBuffer buf,
BagKey.Indexed 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.Indexed bagKey)
Write the payload of an Indexed header atom to the provided buf
|
static void |
HeaderSerialization.writeAtomPrefix(java.nio.ByteBuffer buf,
BagKey.Indexed bagKey,
int level)
Write the prefix byte of an Indexed header atom to the provided buf
|