207
207
s += " at %08X, contents: %s" % (self.offset, repr(self.contents))
213
213
if len(self.contents) != 1:
214
214
raise LRFParseError("Bad parameter for tag ID: %04X" % self.id)
215
215
return struct.unpack("<B", self.contents)[0]
216
216
return property(fget=fget)
221
221
if len(self.contents) != 2:
222
222
raise LRFParseError("Bad parameter for tag ID: %04X" % self.id)
223
223
return struct.unpack("<H", self.contents)[0]
224
224
return property(fget=fget)
229
229
if len(self.contents) != 2:
230
230
raise LRFParseError("Bad parameter for tag ID: %04X" % self.id)
231
231
return struct.unpack("<h", self.contents)[0]
232
232
return property(fget=fget)
237
237
if len(self.contents) != 4:
238
238
raise LRFParseError("Bad parameter for tag ID: %04X" % self.id)