bsa::tes4 namespace

Namespaces

namespace hashing

Classes

class archive
Represents the TES4 revision of the bsa format.
class directory
Represents a directory within the TES4 virtual filesystem.
class file
Represents a file within the TES4 virtual filesystem.

Enums

enum class archive_flag: std::uint32_t { none = 0u, directory_strings = 1u << 0u, file_strings = 1u << 1u, compressed = 1u << 2u, retain_directory_names = 1u << 3u, retain_file_names = 1u << 4u, retain_file_name_offsets = 1 << 5u, xbox_archive = 1u << 6u, retain_strings_during_startup = 1u << 7u, embedded_file_names = 1u << 8u, xbox_compressed = 1u << 9u }
Archive flags can impact the layout of an archive, or how it is read.
enum class archive_type: std::uint16_t { none = 0u, meshes = 1u << 0u, textures = 1u << 1u, menus = 1u << 2u, sounds = 1u << 3u, voices = 1u << 4u, shaders = 1u << 5u, trees = 1u << 6u, fonts = 1u << 7u, misc = 1u << 8u }
Specifies file types contained within an archive.
enum class compression_codec { normal, xmem }
Specifies the codec to use when performing compression/decompression actions on files.
enum class version: std::uint32_t { tes4 = 103, fo3 = 104, fnv = 104, tes5 = 104, sse = 105 }
The archive version.

Enum documentation

enum class bsa::tes4::archive_flag: std::uint32_t

Archive flags can impact the layout of an archive, or how it is read.

Enumerators
none

directory_strings

Includes directory paths within the archive.

file_strings

Includes filenames within the archive.

compressed

Compresses the data within the archive.

retain_directory_names

Impacts runtime parsing.

retain_file_names

Impacts runtime parsing.

retain_file_name_offsets

Impacts runtime parsing.

xbox_archive

Writes the archive in the xbox (big-endian) format.

retain_strings_during_startup

Impacts runtime parsing.

embedded_file_names

Writes the full (virtual) path of a file next to the data blob.

xbox_compressed

Uses the xmem codec from XNA 4.0 to compress the archive.

enum class bsa::tes4::archive_type: std::uint16_t

Specifies file types contained within an archive.

enum class bsa::tes4::compression_codec

Specifies the codec to use when performing compression/decompression actions on files.

Enumerators
normal

The default compression codec.

xmem

The compression codec used for xbox archives.

enum class bsa::tes4::version: std::uint32_t

The archive version.

Enumerators
tes4

The Elder Scrolls IV: Oblivion.

fo3

Fallout 3.

fnv

Fallout: New Vegas.

tes5

The Elder Scrolls V: Skyrim.

sse

The Elder Scrolls V: Skyrim - Special Edition.