CommonLibSSE (Parapets fork)
RE::NiFile Class Reference

#include <NiFile.h>

Inheritance diagram for RE::NiFile:
RE::NiBinaryStream RE::BSFile RE::Archive

Public Types

enum class  OpenMode { kReadOnly = 0 , kWriteOnly = 1 , kAppendOnly = 2 }
 
- Public Types inherited from RE::NiBinaryStream
using int_type = std::int32_t
 
using pos_type = std::uint32_t
 
using off_type = std::int32_t
 

Public Member Functions

 ~NiFile () override
 
bool good () const override
 
void seek (std::int32_t a_numBytes) override
 
void get_info (BufferInfo &a_buf) override
 
void set_endian_swap (bool a_doSwap) override
 
virtual void seek (std::int32_t a_offset, std::int32_t a_from)
 
virtual std::uint32_t size () const
 
- Public Member Functions inherited from RE::NiBinaryStream
 NiBinaryStream ()
 
virtual ~NiBinaryStream ()
 
virtual std::uint32_t tell () const
 
template<class CharT >
bool get (CharT &a_ch)
 
template<class CharT >
bool read (CharT *a_str, std::uint32_t a_count)
 
template<class CharT >
bool put (CharT a_ch)
 
template<class CharT >
bool write (const CharT *a_str, std::uint32_t a_count)
 

Public Attributes

std::uint32_t bufferAllocSize
 
std::uint32_t bufferReadSize
 
std::uint32_t pos
 
std::uint32_t pad2C
 
char * buffer
 
std::FILE * file
 
stl::enumeration< OpenMode, std::uint32_t > mode
 
bool isGood
 
std::uint8_t pad45
 
std::uint16_t pad46
 

Static Public Attributes

static constexpr auto RTTI = RTTI_NiFile
 
- Static Public Attributes inherited from RE::NiBinaryStream
static constexpr auto RTTI = RTTI_NiBinaryStream
 

Additional Inherited Members

- Protected Types inherited from RE::NiBinaryStream
using ReadFn = std::uint32_t(NiBinaryStream *a_this, void *a_buffer, std::uint32_t a_bytes, std::uint32_t *a_componentSizes, std::uint32_t a_numComponents)
 
using WriteFn = std::uint32_t(NiBinaryStream *a_this, const void *a_buffer, std::uint32_t a_bytes, std::uint32_t *a_componentSizes, std::uint32_t a_numComponents)
 
- Protected Member Functions inherited from RE::NiBinaryStream
std::uint32_t binary_read (void *a_buffer, std::uint32_t a_totalBytes, std::uint32_t *a_componentSizes, std::uint32_t a_numComponents=1)
 
std::uint32_t binary_write (const void *a_buffer, std::uint32_t a_totalBytes, std::uint32_t *a_componentSizes, std::uint32_t a_numComponents=1)
 
- Protected Attributes inherited from RE::NiBinaryStream
std::uint32_t _absoluteCurrentPos
 
std::uint32_t _pad0C
 
ReadFn_readFn
 
WriteFn_writeFn
 

Member Enumeration Documentation

◆ OpenMode

enum RE::NiFile::OpenMode
strong
Enumerator
kReadOnly 
kWriteOnly 
kAppendOnly 

Constructor & Destructor Documentation

◆ ~NiFile()

RE::NiFile::~NiFile ( )
override

Member Function Documentation

◆ get_info()

void RE::NiFile::get_info ( BufferInfo a_buf)
overridevirtual

Reimplemented from RE::NiBinaryStream.

◆ good()

bool RE::NiFile::good ( ) const
overridevirtual

Implements RE::NiBinaryStream.

◆ seek() [1/2]

void RE::NiFile::seek ( std::int32_t  a_numBytes)
overridevirtual

Implements RE::NiBinaryStream.

◆ seek() [2/2]

virtual void RE::NiFile::seek ( std::int32_t  a_offset,
std::int32_t  a_from 
)
virtual

Reimplemented in RE::BSFile.

◆ set_endian_swap()

void RE::NiFile::set_endian_swap ( bool  a_doSwap)
overridevirtual

Implements RE::NiBinaryStream.

◆ size()

virtual std::uint32_t RE::NiFile::size ( ) const
virtual

Reimplemented in RE::BSFile.

Member Data Documentation

◆ buffer

char* RE::NiFile::buffer

◆ bufferAllocSize

std::uint32_t RE::NiFile::bufferAllocSize

◆ bufferReadSize

std::uint32_t RE::NiFile::bufferReadSize

◆ file

std::FILE* RE::NiFile::file

◆ isGood

bool RE::NiFile::isGood

◆ mode

stl::enumeration<OpenMode, std::uint32_t> RE::NiFile::mode

◆ pad2C

std::uint32_t RE::NiFile::pad2C

◆ pad45

std::uint8_t RE::NiFile::pad45

◆ pad46

std::uint16_t RE::NiFile::pad46

◆ pos

std::uint32_t RE::NiFile::pos

◆ RTTI

constexpr auto RE::NiFile::RTTI = RTTI_NiFile
inlinestaticconstexpr

The documentation for this class was generated from the following file: