bamboo.lss
Interface UdpCC.Serializer

All Known Implementing Classes:
Network, TputTest
Enclosing class:
UdpCC

public static interface UdpCC.Serializer


Method Summary
 Object deserialize(ByteBuffer buf)
          Called to deserialize the given buf into the message it represents; the inverse of serialize.
 int serialize_size(Object msg)
          Called to determine the size of the byte array needed to serialize the given msg into.
 void serialize(Object msg, ByteBuffer buf)
          Called to serialize the given msg into the provided buf; the inverse of deserialize.
 

Method Detail

serialize_size

int serialize_size(Object msg)
Called to determine the size of the byte array needed to serialize the given msg into.


serialize

void serialize(Object msg,
               ByteBuffer buf)
Called to serialize the given msg into the provided buf; the inverse of deserialize.


deserialize

Object deserialize(ByteBuffer buf)
                   throws Exception
Called to deserialize the given buf into the message it represents; the inverse of serialize.

Throws:
Exception