mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-18 03:30:39 +00:00
Added len and getitem to segments
This commit is contained in:
parent
88c271a4ae
commit
216f31b173
@ -196,6 +196,12 @@ class ObjSegment(object):
|
|||||||
s += " " + self.error
|
s += " " + self.error
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return len(self.data)
|
||||||
|
|
||||||
|
def __getitem__(self, val):
|
||||||
|
return self.data[val]
|
||||||
|
|
||||||
class AtariDosFile(object):
|
class AtariDosFile(object):
|
||||||
"""Parse a binary chunk into segments according to the Atari DOS object
|
"""Parse a binary chunk into segments according to the Atari DOS object
|
||||||
file format.
|
file format.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user