def _load(self, data): (self.subchannel, messageSize) = unpack_from('<HI', data) message = Message(**self.settings) message.load(str(buffer(data, 6, messageSize))) self.message = message return 6 + messageSize
def _load(self, data): (self.subchannel, self.channelId, self.playerId, messageSize) = unpack_from('<HIII', data) message = Message(**self.settings) message.load(str(buffer(data, 14, messageSize))) self.message = message return 14 + messageSize