コード例 #1
0
ファイル: server.py プロジェクト: mcruse/monotone
 def append_crc(self):
     #append a crc character to an existing response string
     buffer = array.array('B')
     buffer.fromstring(self.buffer)
     x = crc(buffer)
     buffer.append(x & 0xFF)
     buffer.append(x >> 8)
     self.crc = x
     self.buffer = buffer.tostring()
コード例 #2
0
ファイル: server.py プロジェクト: ed-aicradle/monotone
 def append_crc(self):
     #append a crc character to an existing response string
     buffer = array.array('B')
     buffer.fromstring(self.buffer)
     x = crc(buffer)
     buffer.append(x & 0xFF)
     buffer.append(x >> 8)
     self.crc = x
     self.buffer = buffer.tostring()
コード例 #3
0
 def append_crc(self):
     b = self.buffer
     x = crc(b)
     b.append(x & 0xFF)
     b.append(x >> 8)
     self.crc = x
コード例 #4
0
ファイル: command.py プロジェクト: mcruse/monotone
 def append_crc(self):
     b = self.buffer
     x = crc(b)
     b.append(x & 0xFF)
     b.append(x >> 8)
     self.crc = x