Skip to content

Commit 191c9ea

Browse files
author
Dylan Terry
committed
Add BinlogEvent.ByteLen func
1 parent 5942cc6 commit 191c9ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

replication/event.go

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ func (e *BinlogEvent) Dump(w io.Writer) {
3838
e.Event.Dump(w)
3939
}
4040

41+
func (e *BinlogEvent) ByteLen() int {
42+
return len(e.RawData)
43+
}
44+
4145
type Event interface {
4246
// Dump Event, format like python-mysql-replication
4347
Dump(w io.Writer)

0 commit comments

Comments
 (0)