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)")
def _decode(self, stream): self.__bytes = read_stream(stream, self.size())
def _decode(self, stream): self.__data = read_stream(stream, param_call(self.__length, self.root()))