コード例 #1
0
 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)
コード例 #2
0
	def _toBuffer(self, writer: BufferWriter):
		self.header.toBuffer(writer)
		writer.putUInt16(self.offset)
		writer.putBytes(self.binaryChunk)
コード例 #3
0
 def _serialize(self, writer: BufferWriter):
     self.header.serialize(writer)
     writer.putUInt16(self.offset)
     writer.putBytes(self.binaryChunk)
コード例 #4
0
 def _serialize(self, writer: BufferWriter):
     writer.putUInt8(self.commandProtocolVersion)
     writer.putUInt16(self.masterVersion)
     writer.putUInt32(self.masterCrc)