def writePointer(self, stream: BytesIO, pdu): parser = PointerEventParser() stream.write(parser.write(pdu.event))
def parsePointer(self, stream: BytesIO, header): parser = PointerEventParser() event = parser.parse(stream) return PointerPDU(header, event)