public final HeaderPacket assembleHeaderPacket(ChannelBuffer buffer) {
HeaderPacket header = new HeaderPacket();
byte[] headerBytes = new byte[MSC.HEADER_PACKET_LENGTH];
buffer.readBytes(headerBytes);
header.fromBytes(headerBytes);
return header;
}
public final PacketWithHeaderPacket assembleBodyPacketWithHeader(ChannelBuffer buffer, HeaderPacket header,
PacketWithHeaderPacket body) throws IOException {