Class: MysqlReplicator::Binlogs::XidEventParser
- Inherits:
-
Object
- Object
- MysqlReplicator::Binlogs::XidEventParser
- Defined in:
- lib/mysql_replicator/binlogs/xid_event_parser.rb
Class Method Summary collapse
Class Method Details
.parse(payload) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/mysql_replicator/binlogs/xid_event_parser.rb', line 14 def self.parse(payload) io = StringIO.new(payload) io.set_encoding(Encoding::BINARY) # XID (8 bytes) xid = StringIOUtil.read_uint64(io) { xid: xid } end |