def _serialize(self, writer: BufferWriter): writer.putUInt8(self.commandProtocolVersion) writer.putUInt8(self.filterId) writer.putUInt16(self.chunkStartIndex) writer.putUInt16(self.totalSize) writer.putUInt16(self.chunkSize) writer.putBytes(self.chunk)
def _toBuffer(self, writer: BufferWriter): self.header.toBuffer(writer) writer.putUInt16(self.offset) writer.putBytes(self.binaryChunk)
def _serialize(self, writer: BufferWriter): self.header.serialize(writer) writer.putUInt16(self.offset) writer.putBytes(self.binaryChunk)
def _serialize(self, writer: BufferWriter): writer.putUInt8(self.commandProtocolVersion) writer.putUInt16(self.masterVersion) writer.putUInt32(self.masterCrc)