|
NSUNI/NSLAR Library a250670
|
Classes | |
| struct | nnl::dig::TFileRecord< TData > |
| A raw entry in the dig archive. More... | |
Typedefs | |
| using | nnl::dig::FileRecord = TFileRecord<Buffer> |
| A raw entry in the dig archive. | |
| using | nnl::dig::FileRecordView = TFileRecord<BufferView> |
| A raw entry in the dig archive. | |
| using | nnl::dig::Dig = std::vector<FileRecord> |
| A primary game data archive. | |
| using | nnl::dig::DigView = std::vector<FileRecordView> |
| A non-owning view of a dig archive. | |
Functions | |
| bool | nnl::dig::IsOfType (BufferView buffer) |
| Tests if the provided file is a dig archive. | |
| Dig | nnl::dig::Import (BufferView buffer) |
| Parses a binary file and converts it into a Dig object. | |
| DigView | nnl::dig::ImportView (BufferView buffer) |
| Parses a binary file and converts it into DigView. | |
| Buffer | nnl::dig::Export (const Dig &cfcdig) |
| Converts a dig archive to a binary file representation. | |
| struct nnl::dig::TFileRecord |
A raw entry in the dig archive.
This structure encapsulates data and metadata of an entry in the dig archive.
Public Attributes | |
| bool | is_compressed = false |
| If the buffer is compressed. | |
| u32 | decompressed_size = 0 |
| u16 | num_entries = 0 |
| The number of entries in the nested archive. | |
| TData | buffer |
| Binary file buffer that stores a nested archive. | |
| TData nnl::dig::TFileRecord< TData >::buffer |
Binary file buffer that stores a nested archive.
| u32 nnl::dig::TFileRecord< TData >::decompressed_size = 0 |
Expected size after decompression. Matches the size of the buffer if it's not compressed.
| bool nnl::dig::TFileRecord< TData >::is_compressed = false |
If the buffer is compressed.
| u16 nnl::dig::TFileRecord< TData >::num_entries = 0 |
The number of entries in the nested archive.
| using nnl::dig::Dig = std::vector<FileRecord> |
A primary game data archive.
The primary container for game assets. The archive format is known by different names: CFC.DIG in NUC2, *.BIN in NSUNI and NSLAR. It consists of nested archives.
| using nnl::dig::DigView = std::vector<FileRecordView> |
A non-owning view of a dig archive.
This type is almost identical to Dig and represents the same archive but allows for access to its entries via references to the source Buffer. It's most suitable when no modifications to the data are expected.
| using nnl::dig::FileRecord = TFileRecord<Buffer> |
A raw entry in the dig archive.
A raw entry in the dig archive.
| Dig nnl::dig::Import | ( | BufferView | buffer | ) |
Parses a binary file and converts it into a Dig object.
This function takes a binary representation of a dig archive, parses its contents, and converts them into a Dig object for easier access and modification.
| buffer | The binary data to be processed. |
| DigView nnl::dig::ImportView | ( | BufferView | buffer | ) |
Parses a binary file and converts it into DigView.
DigView does not store copies of file buffers but stores references to the original data.
| buffer | The binary data to be processed. |
| bool nnl::dig::IsOfType | ( | BufferView | buffer | ) |
Tests if the provided file is a dig archive.
This function takes data representing a file and checks whether it corresponds to the in-game dig archive format.
| buffer | The data to be tested. |