Lines Matching full:file

9     """Decode binary data from a file"""
12 """Initialize with an open binary file and optional byte order"""
14 self.file = f
38 if self.file:
39 return self.file.seek(offset, whence)
43 if self.file:
44 return self.file.tell()
48 s = self.file.read(byte_size)
54 '''Push the current file offset and seek to "offset"'''
55 self.offsets.append(self.file.tell())
56 self.file.seek(offset, 0)
59 …"""Pop a previously pushed file offset, or do nothing if there were no previously pushed offsets"""
61 self.file.seek(self.offsets.pop())
64 …"""Extract a single int8_t from the binary file at the current file position, returns a single int…
73 …"""Extract a single uint8_t from the binary file at the current file position, returns a single in…
82 …"""Extract a single int16_t from the binary file at the current file position, returns a single in…
91 …"""Extract a single uint16_t from the binary file at the current file position, returns a single i…
100 …"""Extract a single int32_t from the binary file at the current file position, returns a single in…
109 …"""Extract a single uint32_t from the binary file at the current file position, returns a single i…
118 …"""Extract a single int64_t from the binary file at the current file position, returns a single in…
127 …"""Extract a single uint64_t from the binary file at the current file position, returns a single i…
138 …"""Extract a single fixed length C string from the binary file at the current file position, retur…
154 …"""Extract a single NULL terminated C string from the binary file at the current file position, re…
163 …"""Extract "n" int8_t integers from the binary file at the current file position, returns a list o…
171 …"""Extract "n" uint8_t integers from the binary file at the current file position, returns a list …
179 …"""Extract "n" int16_t integers from the binary file at the current file position, returns a list …
187 …"""Extract "n" uint16_t integers from the binary file at the current file position, returns a list…
195 …"""Extract "n" int32_t integers from the binary file at the current file position, returns a list …
203 …"""Extract "n" uint32_t integers from the binary file at the current file position, returns a list…
211 …"""Extract "n" int64_t integers from the binary file at the current file position, returns a list …
219 …"""Extract "n" uint64_t integers from the binary file at the current file position, returns a list…