cp2077_extractor.cr2w.io
File IO operations.
Exceptions:
Error raised when an invalid name is read. |
Classes:
|
Working data for parsing CR2W/W2RC files. |
Functions:
|
Parse a CR2W/W2RC file from an opened file. |
|
Parse a CR2W/W2RC file from the given path. |
|
Read a buffer from the CR2W/W2RC file. |
|
Read a name from the open file. |
|
Read an export chunk from the file. |
|
Read the file header and metadata. |
|
Read the given struct from the open file. |
|
Read a tables of the given type in from the opened file. |
-
namedtuple
ParsingData(names_list, chunks, buffers)[source] Bases:
NamedTupleWorking data for parsing CR2W/W2RC files.
- Fields
-
__repr__() Return a nicely formatted representation string
-
read_buffer(fp, info)[source] Read a buffer from the CR2W/W2RC file.
- Parameters
fp (
IO)info (
CR2WBufferInfo) – Metadata about the buffer
- Return type
-
read_c_name(fp, names_list)[source] Read a name from the open file.
Reads the ordinal of the name, and looks up the name string in
names_list.