class MySQLBinlogEventHeader implements MySQLPacket {

    @Override
    public void write(final MySQLPacketPayload payload) {
        payload.writeInt4(timestamp);
        payload.writeInt1(eventType);
        payload.writeInt4(serverId);
        payload.writeInt4(eventSize);
        payload.writeInt4(logPos);
        payload.writeInt2(flags);
    }

    public  MySQLBinlogEventHeader(final MySQLPacketPayload payload);

}