CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::BSResourceNiBinaryStream Class Reference

#include <BSResourceNiBinaryStream.h>

Inheritance diagram for RE::BSResourceNiBinaryStream:
RE::NiBinaryStream

Classes

struct  BufferType
 

Public Member Functions

 BSResourceNiBinaryStream ()
 
 BSResourceNiBinaryStream (const char *a_fileName)
 
 BSResourceNiBinaryStream (const std::string &a_fileName)
 
 ~BSResourceNiBinaryStream () override
 
bool good () const override
 
void seek (std::int32_t a_numBytes) override
 
std::uint32_t tell () const override
 
void get_info (BufferInfo &a_buf) override
 
void set_endian_swap (bool a_doSwap) override
 
- Public Member Functions inherited from RE::NiBinaryStream
 NiBinaryStream ()
 
virtual ~NiBinaryStream ()
 
virtual bool good () const =0
 
virtual void seek (std::int32_t a_numBytes)=0
 
virtual std::uint32_t tell () const
 
virtual void get_info (BufferInfo &a_buf)
 
virtual void set_endian_swap (bool a_doSwap)=0
 
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

BSTSmartPointer< BSResource::Streamstream
 
BufferTypebuffer
 
std::uint32_t streamPos
 
BSResource::ErrorCode lastError
 

Static Public Attributes

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

Additional Inherited Members

- Public Types inherited from RE::NiBinaryStream
using int_type = std::int32_t
 
using pos_type = std::uint32_t
 
using off_type = std::int32_t
 
- 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
 

Constructor & Destructor Documentation

◆ BSResourceNiBinaryStream() [1/3]

RE::BSResourceNiBinaryStream::BSResourceNiBinaryStream ( )

◆ BSResourceNiBinaryStream() [2/3]

RE::BSResourceNiBinaryStream::BSResourceNiBinaryStream ( const char *  a_fileName)

◆ BSResourceNiBinaryStream() [3/3]

RE::BSResourceNiBinaryStream::BSResourceNiBinaryStream ( const std::string &  a_fileName)

◆ ~BSResourceNiBinaryStream()

RE::BSResourceNiBinaryStream::~BSResourceNiBinaryStream ( )
override

Member Function Documentation

◆ get_info()

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

Reimplemented from RE::NiBinaryStream.

◆ good()

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

Implements RE::NiBinaryStream.

◆ seek()

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

Implements RE::NiBinaryStream.

◆ set_endian_swap()

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

Implements RE::NiBinaryStream.

◆ tell()

std::uint32_t RE::BSResourceNiBinaryStream::tell ( ) const
overridevirtual

Reimplemented from RE::NiBinaryStream.

Member Data Documentation

◆ buffer

BufferType* RE::BSResourceNiBinaryStream::buffer

◆ lastError

BSResource::ErrorCode RE::BSResourceNiBinaryStream::lastError

◆ RTTI

constexpr auto RE::BSResourceNiBinaryStream::RTTI = RTTI_BSResourceNiBinaryStream
inlinestaticconstexpr

◆ stream

BSTSmartPointer<BSResource::Stream> RE::BSResourceNiBinaryStream::stream

◆ streamPos

std::uint32_t RE::BSResourceNiBinaryStream::streamPos

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