MCPcopy Create free account
hub / github.com/ByConity/ByConity / parse

Method parse

src/Core/MySQL/MySQLReplication.cpp:32–40  ·  view source on GitHub ↗

https://dev.mysql.com/doc/internals/en/binlog-event-header.html

Source from the content-addressed store, hash-verified

30
31 /// https://dev.mysql.com/doc/internals/en/binlog-event-header.html
32 void EventHeader::parse(ReadBuffer & payload)
33 {
34 payload.readStrict(reinterpret_cast<char *>(&timestamp), 4);
35 payload.readStrict(reinterpret_cast<char *>(&type), 1);
36 payload.readStrict(reinterpret_cast<char *>(&server_id), 4);
37 payload.readStrict(reinterpret_cast<char *>(&event_size), 4);
38 payload.readStrict(reinterpret_cast<char *>(&log_pos), 4);
39 payload.readStrict(reinterpret_cast<char *>(&flags), 2);
40 }
41
42 void EventHeader::dump(WriteBuffer & out) const
43 {

Callers 2

updateMethod · 0.45
readPayloadImplMethod · 0.45

Calls 4

readStrictMethod · 0.80
resizeMethod · 0.45
dataMethod · 0.45
ignoreMethod · 0.45

Tested by

no test coverage detected