BfshaLibrary
Represents a buffer of data uploaded to the GPU which can hold arbitrary data.
The size of a full vertex in bytes.
The raw bytes stored for each buffering.
Represents an memory pool section in a subfile, storing memory.
Represents an memory info section in a subfile. References vertex and index buffers
Gets or sets the buffer instance that stores face data first, then vertex buffer after.
Gets or sets the memory pool property
Represents an _RLT section in a subfile, storing pointers to sections in a Bfsha.
Gets or sets the instance storing the data which forms the shape's surface. Saved
depending on .
Represents the non-generic base of a dictionary which can quickly look up instances via
key or index.
Initializes a new instance of the class.
Gets the number of instances stored.
Gets all keys under which instances are stored.
Gets all stored instances.
Returns only the publically visible nodes, excluding the root node.
Gets or sets the instance stored at the specified .
The 0-based index of the instance to get or set.
The at the specified .
The index is smaller than 0 or bigger or equal to
.
Gets or sets the instance stored under the specified .
The textual key of the instance to get or set.
The with the specified .
An instance with the same
already exists.
An instance with the given
does not exist.
Gets or sets the key under which the specified is stored.
The instance of the key to get or set.
The key of the specified .
An instance with the same key already exists.
A key for the given does not exist.
Removes all elements from the dictionary.
Gets a list of all the containing keys.
Returns the key given is within range of the dictionary.
Determines whether an instance is saved under the given in the dictionary.
The textual key to locate in the dictionary. The value can be null.
true if was found in the dictionary; otherwise false.
Searches for the specified and returns the zero-based index of the first occurrence
within the entire dictionary.
The textual key to locate in the dictionary. The value can be null.
The zero-based index of the first occurence of within the entire dictionary
if found; otherwise -1.
Changes the key of the instance currently saved under the given to the
.
The current textual key to rename.
The new textual key to use.
An instance with the same
already exists.
The given does not exist.
Removes the first occurrence of the instance with the specific from the dictionary.
The textual key of the instance which will be removed.
true if the instance under was successfully removed; otherwise
false. This method also returns false if was not found in the
dictionary.
Removes the instance at the specified of the dictionary.
The zero-based index of the instance to remove.
is less than 0 or equal to or greater
than .
Returns true if an instance was stored under the given
and has been assigned to , or false if no instance is stored under the
given and null was assigned to .
The textual key of the instance to get or set.
The variable receiving the found or null.
true if an instance was found and assigned; otherwise false.
Adds the given under the specified .
The textual key under which the instance will be stored.
The to add.
An instance with the same
already exists.
Determines whether the given is in the dictionary.
The instance to locate in the dictionary. The value can be
null.
true if was found in the dictionary; otherwise false.
Searches for the specified and returns the zero-based index of the first occurrence
within the entire dictionary.
The instance to locate in the dictionary. The value can be
null.
The zero-based index of the first occurence of within the entire
dictionary if found; otherwise -1.
Removes the first occurrence of a specific from the dictionary.
The instance to remove from the dictionary. The value can be
null.
true if was successfully removed; otherwise false. This
method also returns false if was not found in the dictionary.
Copies the elements of the dictionary as instances to a new
array and returns it.
An array containing copies of the elements.
Returns true if a key was found for the given and has been assigned to
, or false if no key was found for the value and null was assigned to
.
The to look up a key for.
The variable receiving the found key or null.
true if a key was found and assigned; otherwise false.
Returns a generic which can be used to iterate over the items in the dictionary.
An enumerator to iterate over the items in the dictionary.
Returns an which can be used to iterate over the items in the dictionary.
An enumerator to iterate over the items in the dictionary.
Returns the instance of the node with the given using the
Patricia trie logic.
Nodes are looked up linearly by iterating over the node list internally, this method has been
implemented for test and validation purposes only.
The name of the node to look up.
The instance referenced by the found node.
Loads an instance from the given .
The to load the instance with.
The loaded instance.
Represents a node forming the Patricia trie of the dictionary.
Represents a dictionary which can quickly look up instances of type
via key or index.
The specialized type of the instances.
Initializes a new instance of the class.
Gets all stored instances.
Gets or sets the value stored at the specified .
The 0-based index of the instance to get or set.
The instance at the specified .
The index is smaller than 0 or bigger or equal to
.
Gets or sets the value stored under the specified .
The textual key of the instance to get or set.
The instance with the specified .
An instance with the same already exists.
An instance with the given does not exist.
Adds the given under the specified .
The textual key under which the instance will be stored.
The to add.
An instance with the same
already exists.
Determines whether the given is in the dictionary.
The instance to locate in the dictionary. The value can be
null.
true if was found in the dictionary; otherwise false.
Returns a generic which can be used to iterate over the items in the dictionary.
An enumerator to iterate over the items in the dictionary.
Searches for the specified and returns the zero-based index of the first occurrence
within the entire dictionary.
The instance to locate in the dictionary. The value can be
null.
The zero-based index of the first occurence of within the entire
dictionary if found; otherwise -1.
Removes the first occurrence of a specific from the dictionary.
The instance to remove from the dictionary. The value can be
null.
true if was successfully removed; otherwise false. This
method also returns false if was not found in the dictionary.
Copies the elements of the dictionary as instances to a new
array and returns it.
An array containing copies of the elements.
Returns true if a key was found for the given and has been assigned to
, or false if no key was found for the value and null was assigned to
.
The to look up a key for.
The variable receiving the found key or null.
true if a key was found and assigned; otherwise false.
Returns true if an instance was stored under the given and has been assigned
to , or false if no instance is stored under the given
and null was assigned to .
The textual key of the instance to get or set.
The variable receiving the found instance or null.
true if an instance was found and assigned; otherwise false.
Loads an instance from the given .
The to load the instance with.
The loaded instance.
Represents a which is stored in a .
The textual represented by this instance.
The with which this string was read or will be written.
Converts the given value to a instance.
The value to represent in the new instance.
Converts the given value to an instance.
The value to represent in the new instance.
Returns the value of the property.
The value of the property.
Represents a which is stored in a .
The textual represented by this instance.
The with which this string was read or will be written.
Converts the given value to a instance.
The value to represent in the new instance.
Converts the given value to an instance.
The value to represent in the new instance.
Returns the value of the property.
The value of the property.
Represenents a stream taked from another given an offset and length
Used for archives with streams left open
Represents custom user variables which can be attached to many sections and subfiles of a .
Gets or sets the name with which the instance can be referenced uniquely in
instances.
The data type of the stored values.
Represents the possible data types of values stored in instances.
The values is an array.
The values is a array.
The values is a array encoded in ASCII.
The values is a array encoded in UTF-16.
The values is a array.
Loads the hierachy and data of a .
Initializes a new instance of the class loading data into the given
from the specified which is optionally left open.
The instance to load data into.
The to read data from.
true to leave the stream open after reading, otherwise false.
Initializes a new instance of the class from the file with the given
.
The instance to load data into.
The name of the file to load the data from.
Gets the loaded instance.
Starts deserializing the data from the root.
Reads and returns an instance of type from the following
offset or returns null if the read offset is 0.
The type of the to read.
The instance or null.
Reads and returns an instance of type from the following
offset or returns null if the read offset is 0.
The type of the to read.
The instance or null.
Reads and returns an instance of type from the following
offset or returns null if the read offset is 0.
The type of the to read.
The instance or null.
Reads and returns an instance of arbitrary type from the following offset with the
given or returns null if the read offset is 0.
The type of the data to read.
The callback to read the instance data with.
The optional offset to use instead of reading a following one.
The data instance or null.
Offset required for ExtFile header (offset specified before size).
Reads and returns an instance with elements of type from
the following offset or returns an empty instance if the read offset is 0.
The type of the elements.
The instance.
Reads and returns an instance with elements of type
from the following offset or returns null if the read offset is 0.
The type of the elements.
The number of elements to expect for the list.
The optional offset to use instead of reading a following one.
The instance or null.
Offset required for FMDL FVTX lists (offset specified before count).
Reads and returns a instance from the following offset or null if the read
offset is 0.
The optional encoding of the text.
The read text.
Reads and returns instances from the following offsets.
The number of instances to read.
The optional encoding of the texts.
The read texts.
Reads and returns an instance with elements of type from
the following offset or returns an empty instance if the read offset is 0.
The type of the elements.
The instance.
Reads and returns an instance with elements of type from
the following offset or returns an empty instance if the read offset is 0.
The type of the elements.
The instance.
Reads a BFRES signature consisting of 4 ASCII characters encoded as an and checks for
validity.
A valid signature.
Reads a BFRES offset which is relative to itself, and returns the absolute address.
The absolute address of the offset.
Reads BFRES offsets which are relative to themselves, and returns the absolute addresses.
The number of offsets to read.
The absolute addresses of the offsets.
Saves the hierachy and data of a .
Gets or sets a data block alignment typically seen with .
Gets the saved instance.
Gets the saved instance used for exporting data.
Gets the current index when writing lists or dicts.
Starts serializing the data from the root.
Reserves space for an offset to the written later.
The to save.
The index of the element, used for instances referenced by a .
Reserves space for an offset to the written later.
The type of the elements.
The to save.
Reserves space for an offset to the written later.
The type of the element values.
The to save.
Reserves space for an offset to the written later with the
.
The data to save.
The to invoke to write the data.
Reserves space for an offset to the written later in the string pool with the
specified .
The name to save.
The in which the name will be stored.
Reserves space for offsets to the written later in the string pool with the
specified
The names to save.
The in which the names will be stored.
Reserves space for an offset to the written later in the data block pool.
The data to save.
The alignment to seek to before invoking the callback.
The to invoke to write the data.
Writes a BFRES signature consisting of 4 ASCII characters encoded as an .
A valid signature.
Represents the common interface for data instances.
Loads raw data from the data stream into instances.
The to load data with.
Saves header data of the instance and queues referenced data in the given .
The to save headers and queue data with.
Represents a sorting empty strings to the end of lists.
Represents an exception raised when handling data.
Initializes a new instance of the class with a specified error
.
The error message that explains the reason for the exception.
Initializes a new instance of the class with a specified error message created
from the given and .
The format of the error message.
The parameters to format the error message with.
Represents an FMDL subfile in a , storing model vertex data, skeletons and used materials.
Gets or sets the location list of samplers for this program.
Gets or sets the location list of uniforms for this program.
Represents an FMDL subfile in a , storing model vertex data, skeletons and used materials.
Represents an FMDL subfile in a , storing model vertex data, skeletons and used materials.
Gets or sets the name with which the instance can be referenced uniquely in
instances.
Gets or sets the path of the file which originally supplied the data of this instance.
The parent bfsha binary of the file.
The binary shader file used to store programs, variations and binary data
Gets or sets the stored (FMDL) instances.
Gets or sets the stored (FMDL) instances.
Gets or sets the stored (FMDL) instances.
Gets or sets the stored (FMDL) instances.
Gets or sets the stored (FMDL) instances.
Gets or sets the stored (FMDL) instances.
Gets or sets the program list of the shader model.
Gets the program count of the shader model.
Gets or sets the key table used to lookup shader option choices used per program.
Gets the number of static keys used per program.
Gets the number of dynamic keys used per program.
The max ring item size;
Gets the program index from a set of given option choices.
Prints all the program keys.
Prints specificed program keys from the given index.
Determines if the specified program is valid with the given option choice combinations.
This method checks the key table and determines if the choices match,
Represents an FMDL subfile in a , storing model vertex data, skeletons and used materials.
Gets or sets the name with which the instance can be referenced uniquely in
instances.
Gets or sets attached names
A list of choice value indices.
Gets or sets attached names
Gets or sets attached names
Represents an FMDL subfile in a , storing model vertex data, skeletons and used materials.
Gets or sets the stored (FMDL) instances.
Represents a NintendoWare for Cafe (NW4F) graphics shader archive file.
Initializes a new instance of the class.
Initializes a new instance of the class from the given which
is optionally left open.
The to load the data from.
true to leave the stream open after reading, otherwise false.
Initializes a new instance of the class from the file with the given
.
The name of the file to load the data from.
Gets or sets the alignment to use for raw data blocks in the file.
Gets or sets the target adress size to use for raw data blocks in the file.
Gets or sets a name describing the contents.
Gets or sets the path of the file which originally supplied the data of this instance.
Gets or sets the revision of the BFRES structure formats.
Gets or sets the flag. Unknown purpose.
Gets or sets the BlockOffset.
Gets or sets the major revision of the BFRES structure formats.
Gets or sets the major revision of the BFRES structure formats.
Gets or sets the second major revision of the BFRES structure formats.
Gets or sets the minor revision of the BFRES structure formats.
Gets or sets the second minor revision of the BFRES structure formats.
Gets the byte order in which data is stored. Must be the endianness of the target platform.
Gets or sets the stored (_RLT) instance.
Gets or sets the stored instances.
Saves the contents in the given and optionally leaves it open
The to save the contents into.
true to leave the stream open after writing, otherwise false.
Saves the contents in the file with the given .
The name of the file to save the contents into.
Represents a NintendoWare for Cafe (NW4F) shader file.
Initializes a new instance of the class.
Initializes a new instance of the class from the given which
is optionally left open.
The to load the data from.
true to leave the stream open after reading, otherwise false.
Initializes a new instance of the class from the file with the given
.
The name of the file to load the data from.
Gets or sets the major revision of the BFRES structure formats.
Gets or sets the major revision of the BFRES structure formats.
Gets or sets the second major revision of the BFRES structure formats.
Gets or sets the minor revision of the BFRES structure formats.
Gets or sets the second minor revision of the BFRES structure formats.
Gets the byte order in which data is stored. Must be the endianness of the target platform.
Gets or sets the alignment to use for raw data blocks in the file.
Gets or sets the data alignment to use for raw data blocks in the file.
Gets or sets the target adress size to use for raw data blocks in the file.
Gets or sets the flag. Unknown purpose.
Gets or sets the BlockOffset.
Gets or sets a name describing the contents.
Gets or sets the path of the file which originally supplied the data of this instance.
Gets or sets the stored (_RLT) instance.
Saves the contents in the given and optionally leaves it open
The to save the contents into.
true to leave the stream open after writing, otherwise false.
Saves the contents in the file with the given .
The name of the file to save the contents into.
Represents a node forming the Patricia trie of the dictionary.
Loads the hierachy and data of a .
Initializes a new instance of the class loading data into the given
from the specified which is optionally left open.
The instance to load data into.
The to read data from.
true to leave the stream open after reading, otherwise false.
Initializes a new instance of the class from the file with the given
.
The instance to load data into.
The name of the file to load the data from.
Starts deserializing the data from the root.
Reads and returns an instance of arbitrary type from the following offset with the
given or returns null if the read offset is 0.
The type of the data to read.
The callback to read the instance data with.
The optional offset to use instead of reading a following one.
The data instance or null.
Offset required for ExtFile header (offset specified before size).
Reads a BFRES offset which is relative to itself, and returns the absolute address.
The absolute address of the offset.
Saves the hierachy and data of a .
Gets or sets a data block alignment typically seen with .
Initializes a new instance of the class saving data from the given
into the specified which is optionally left open.
The instance to save data from.
The to save data into.
true to leave the stream open after writing, otherwise false.
Initializes a new instance of the class for the file with the given
.
The instance to save.
The name of the file to save the data into.
Starts serializing the data from the root.
Loads the hierachy and data of a .
Initializes a new instance of the class loading data into the given
from the specified which is optionally left open.
The instance to load data into.
The to read data from.
true to leave the stream open after reading, otherwise false.
Initializes a new instance of the class from the file with the given
.
The instance to load data into.
The name of the file to load the data from.
Reads and returns an instance with elements of type from
the following offset or returns an empty instance if the read offset is 0.
The type of the elements.
The instance.
Saves the hierachy and data of a .
Gets or sets a data block alignment typically seen with .
Initializes a new instance of the class saving data from the given
into the specified which is optionally left open.
The instance to save data from.
The to save data into.
true to leave the stream open after writing, otherwise false.
Initializes a new instance of the class for the file with the given
.
The instance to save.
The name of the file to save the data into.
Starts serializing the data from the root.