TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
TeaPacket::Assets::AssetStream Class Reference

#include <AssetStream.hpp>

Public Member Functions

 AssetStream (const std::string &path)
 
void ReadBytes (size_t length, char *data)
 
void Seek (ptrdiff_t amount, std::ios::seekdir dir)
 
size_t Tell ()
 
void Skip (size_t length)
 
char ReadByte ()
 
std::vector< char > ReadBytes (size_t length)
 
template<typename T>
ReadVal ()
 
int16_t ReadSInt16LittleEndian ()
 
uint16_t ReadUInt16LittleEndian ()
 
int32_t ReadSInt32LittleEndian ()
 
uint32_t ReadUInt32LittleEndian ()
 
int64_t ReadSInt64LittleEndian ()
 
uint64_t ReadUInt64LittleEndian ()
 
int16_t ReadSInt16BigEndian ()
 
uint16_t ReadUInt16BigEndian ()
 
int32_t ReadSInt32BigEndian ()
 
uint32_t ReadUInt32BigEndian ()
 
int64_t ReadSInt64BigEndian ()
 
uint64_t ReadUInt64BigEndian ()
 

Public Attributes

bool endOfField
 
PlatformAssetStream platformStream
 

Constructor & Destructor Documentation

◆ AssetStream()

TeaPacket::Assets::AssetStream::AssetStream ( const std::string & path)

Member Function Documentation

◆ ReadByte()

char TeaPacket::Assets::AssetStream::ReadByte ( )

◆ ReadBytes() [1/2]

std::vector< char > TeaPacket::Assets::AssetStream::ReadBytes ( size_t length)

◆ ReadBytes() [2/2]

void TeaPacket::Assets::AssetStream::ReadBytes ( size_t length,
char * data )

◆ ReadSInt16BigEndian()

int16_t TeaPacket::Assets::AssetStream::ReadSInt16BigEndian ( )

◆ ReadSInt16LittleEndian()

int16_t TeaPacket::Assets::AssetStream::ReadSInt16LittleEndian ( )

◆ ReadSInt32BigEndian()

int32_t TeaPacket::Assets::AssetStream::ReadSInt32BigEndian ( )

◆ ReadSInt32LittleEndian()

int32_t TeaPacket::Assets::AssetStream::ReadSInt32LittleEndian ( )

◆ ReadSInt64BigEndian()

int64_t TeaPacket::Assets::AssetStream::ReadSInt64BigEndian ( )

◆ ReadSInt64LittleEndian()

int64_t TeaPacket::Assets::AssetStream::ReadSInt64LittleEndian ( )

◆ ReadUInt16BigEndian()

uint16_t TeaPacket::Assets::AssetStream::ReadUInt16BigEndian ( )

◆ ReadUInt16LittleEndian()

uint16_t TeaPacket::Assets::AssetStream::ReadUInt16LittleEndian ( )

◆ ReadUInt32BigEndian()

uint32_t TeaPacket::Assets::AssetStream::ReadUInt32BigEndian ( )

◆ ReadUInt32LittleEndian()

uint32_t TeaPacket::Assets::AssetStream::ReadUInt32LittleEndian ( )

◆ ReadUInt64BigEndian()

uint64_t TeaPacket::Assets::AssetStream::ReadUInt64BigEndian ( )

◆ ReadUInt64LittleEndian()

uint64_t TeaPacket::Assets::AssetStream::ReadUInt64LittleEndian ( )

◆ ReadVal()

template<typename T>
T TeaPacket::Assets::AssetStream::ReadVal ( )
inline

◆ Seek()

void TeaPacket::Assets::AssetStream::Seek ( ptrdiff_t amount,
std::ios::seekdir dir )

◆ Skip()

void TeaPacket::Assets::AssetStream::Skip ( size_t length)

◆ Tell()

size_t TeaPacket::Assets::AssetStream::Tell ( )

Member Data Documentation

◆ endOfField

bool TeaPacket::Assets::AssetStream::endOfField

◆ platformStream

PlatformAssetStream TeaPacket::Assets::AssetStream::platformStream

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