Skip to content

Commit 49ccb4f

Browse files
oxmanebaloo
authored andcommitted
Add implementation of read_int32 (#213)
1 parent 39d5827 commit 49ccb4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymysqlreplication/packet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ def read_uint24(self):
282282
def read_uint32(self):
283283
return struct.unpack('<I', self.read(4))[0]
284284

285+
def read_int32(self):
286+
return struct.unpack('<i', self.read(4))[0]
287+
285288
def read_uint40(self):
286289
a, b = struct.unpack("<BI", self.read(5))
287290
return a + (b << 8)

0 commit comments

Comments
 (0)