criware-utf
Implementation of the UTF table format used in CRIWARE CPK files.
This crate primarily offers the utf_table macro, which automatically
creates a table read and write procedure based on a schema provided as a
struct definition (see the Table trait for more info on what is provided,
and the macro itself for info on how to write the schema).
The Schema type (unrelated to utf_table) allows for retrieving
the structure of a table without its contents. This can be useful
for debugging, or any situation where a table may be one of many possible
schemas (see example).
The Packet type mimics the method in which the primary tables in a CPK
file are stored. Encryption and decryption are handled automatically.
The Reader and Writer types are also available for use in custom
read/write procedures, but they are, in their current state, highly
specialized for the utf_table macro, so using them is
not recommended.
Examples
This section demonstrates important features this crate provides. Each example can be dropped in to a project and compile (and run if you had the necessary table files).
All of these examples demonstrate high-level functionality. For more precise examples and explanations, consult the page for the relevant type/macro.
Example: Basic table read/write
use ;
Example: Reading one of many schemas
use ;
use ;
License
This project is open source and available under the terms of the GNU General Public License v3.0.