diff options
-rw-r--r-- | readers.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,10 @@ class ByteReader: | |||
24 | self.o += n | 24 | self.o += n |
25 | return self.data[self.o-n:self.o] | 25 | return self.data[self.o-n:self.o] |
26 | 26 | ||
27 | def readlongstring(self): | ||
28 | namelen = self.readdword() | ||
29 | return self.readbytes(namelen).decode('cp1251') | ||
30 | |||
27 | def readname(self): | 31 | def readname(self): |
28 | namelen = self.readbyte() | 32 | namelen = self.readbyte() |
29 | return self.readbytes(namelen).decode('cp1251') | 33 | return self.readbytes(namelen).decode('cp1251') |