예제 #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
 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