2
* Copyright (C) 2013 Drizzle Developer Group
3
* Copyright (C) 2013 Kuldeep Porwal
6
* Use and distribution licensed under the BSD license. See
7
* the COPYING file in the parent directory for full text.
9
* summary: parse xid event
13
#include <libdrizzle-5.1/libdrizzle.h>
31
using namespace binlogevent;
35
void XidEvent::initWithData(const unsigned char* data)
38
int start_pos = header.setHeader(data);
43
tmp=getByte8(start_pos,data);
46
setXid((uint64_t)tmp);
51
uint32_t XidEvent::getTimestamp()
53
return header.timestamp;
55
enum_event_type XidEvent::getType()
57
return (enum_event_type)header.type;
59
uint32_t XidEvent::getServerId()
61
return header.server_id;
63
uint32_t XidEvent::getLogPos()
65
return header.log_pos;
67
uint16_t XidEvent::getFlagH()
71
uint64_t XidEvent::getXid()
78
void XidEvent::setXid(uint64_t value)