* Store the raw read value, checks the payload type and set the
* payloadClass accordingly
*/
+ if (logger.isTraceEnabled()) {
+ logger.trace("{}: {}: {} (offset {} bitsize {})",
+ new Object[] { this.getClass().getSimpleName(), hdrField,
+ HexEncode.bytesToHexString(hdrFieldBytes),
+ startOffset, numBits });
+ }
+
this.setHeaderField(hdrField, hdrFieldBytes);
}
* packet class, into a single stream of bytes to be sent on the wire
*
* @return byte[] - serialized bytes
- * @throws PacketException
+ * @throws PacketException
*/
public byte[] serialize() throws PacketException {
}
postSerializeCustomOperation(headerBytes);
+ if (logger.isTraceEnabled()) {
+ logger.trace("{}: {}", this.getClass().getSimpleName(),
+ HexEncode.bytesToHexString(headerBytes));
+ }
return headerBytes;
}