e.logSequenceNo = data.getLong();
e.payloadType = data.get();
final int payloadSize = bufSize - headerLength;
int payloadPosition = data.position();
ReusableBuffer payload = data.createViewBuffer();
payload.range(payloadPosition, payloadSize);
e.payload = payload;
if (USE_CHECKSUMS) {
// reset the old checksum to 0, before calculating a new one
data.position(Integer.SIZE / 8);