diff --git a/opendis/dis7.py b/opendis/dis7.py index 86b1576..9b15801 100644 --- a/opendis/dis7.py +++ b/opendis/dis7.py @@ -116,9 +116,7 @@ def serialize(self, outputStream): outputStream.write_unsigned_int(self.recordType); outputStream.write_unsigned_short( len(self.iffData)); for anObj in self.iffData: - anObj.serialize(outputStream) - - + outputStream.write_unsigned_byte(anObj) def parse(self, inputStream): """"Parse a message. This may recursively call embedded objects.""" @@ -126,9 +124,8 @@ def parse(self, inputStream): self.recordType = inputStream.read_unsigned_int(); self.recordLength = inputStream.read_unsigned_short(); for idx in range(0, self.recordLength): - element = null() - element.parse(inputStream) - self.iffData.append(element) + val = inputStream.read_unsigned_byte() + self.iffData.append(val)