示例#1
0
 def _decode(self, stream):
     if isinstance(stream, BitStreamReader):
         self.__bits = read_stream(stream, self.size())
     else:
         raise TypeError("Stream for bit fields should be bit oriented "
                         "(hint: enclose it in a BitStructure)")
示例#2
0
 def _decode(self, stream):
     if isinstance(stream, BitStreamReader):
         self.__bits = read_stream(stream, self.size())
     else:
         raise TypeError("Stream for bit fields should be bit oriented "
                         "(hint: enclose it in a BitStructure)")
示例#3
0
 def _decode(self, stream):
     self.__bytes = read_stream(stream, self.size())
示例#4
0
 def _decode(self, stream):
     self.__bytes = read_stream(stream, self.size())
示例#5
0
 def _decode(self, stream):
     self.__data = read_stream(stream, param_call(self.__length, self.root()))