コード例 #1
0
 def StoreBits32(self, val):
     """
 Stores the 32 least-significant-bits from val in network order (big endian)
 """
     tmp_val = struct.pack(">L", val)
     self.StoreBits((StrToList(tmp_val), 32))
コード例 #2
0
 def StoreBits8(self, val):
     """
 Stores the 8 least-significant-bits from val
 """
     tmp_val = struct.pack(">B", val)
     self.StoreBits((StrToList(tmp_val), 8))