Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
Assimp::MemoryIOSystem Class Reference

Dummy IO system to read from a memory buffer. More...

#include <MemoryIOWrapper.h>

Inherits Assimp::IOSystem.

Public Member Functions

bool ChangeDirectory (const std::string &path) override
 Will change the directory.
 
void Close (IOStream *pFile) override
 Closes the given file and releases all resources associated with it.
 
bool ComparePaths (const char *one, const char *second) const override
 Compare two paths.
 
bool CreateDirectory (const std::string &path) override
 Will create the directory.
 
const std::string & CurrentDirectory () const override
 Will return the current directory from the stack top.
 
bool DeleteFile (const std::string &file) override
 Will delete the file.
 
bool Exists (const char *pFile) const override
 Tests for the existence of a file at the given path.
 
char getOsSeparator () const override
 Returns the directory separator.
 
 MemoryIOSystem (const uint8_t *buff, size_t len, IOSystem *io)
 Constructor.
 
IOStreamOpen (const char *pFile, const char *pMode="rb") override
 Open a new file with a given path.
 
bool PopDirectory () override
 Will pop the upper directory.
 
bool PushDirectory (const std::string &path) override
 Will push the directory.
 
size_t StackSize () const override
 Returns the stack size.
 
 ~MemoryIOSystem () override=default
 Destructor.
 
- Public Member Functions inherited from Assimp::IOSystem
bool ComparePaths (const std::string &one, const std::string &second) const
 For backward compatibility.
 
AI_FORCE_INLINE bool Exists (const std::string &pFile) const
 For backward compatibility.
 
 IOSystem () AI_NO_EXCEPT=default
 Default constructor.
 
IOStreamOpen (const std::string &pFile, const std::string &pMode=std::string("rb"))
 For backward compatibility.
 
virtual ~IOSystem ()=default
 Virtual destructor.
 

Detailed Description

Dummy IO system to read from a memory buffer.

Constructor & Destructor Documentation

◆ MemoryIOSystem()

Assimp::MemoryIOSystem::MemoryIOSystem ( const uint8_t buff,
size_t  len,
IOSystem io 
)
inline

Constructor.

◆ ~MemoryIOSystem()

Assimp::MemoryIOSystem::~MemoryIOSystem ( )
overridedefault

Destructor.

Member Function Documentation

◆ ChangeDirectory()

bool Assimp::MemoryIOSystem::ChangeDirectory ( const std::string &  path)
inlineoverridevirtual

Will change the directory.

Reimplemented from Assimp::IOSystem.

◆ Close()

void Assimp::MemoryIOSystem::Close ( IOStream pFile)
inlineoverridevirtual

Closes the given file and releases all resources associated with it.

Implements Assimp::IOSystem.

◆ ComparePaths()

bool Assimp::MemoryIOSystem::ComparePaths ( const char one,
const char second 
) const
inlineoverridevirtual

Compare two paths.

Reimplemented from Assimp::IOSystem.

◆ CreateDirectory()

bool Assimp::MemoryIOSystem::CreateDirectory ( const std::string &  path)
inlineoverridevirtual

Will create the directory.

Reimplemented from Assimp::IOSystem.

◆ CurrentDirectory()

const std::string & Assimp::MemoryIOSystem::CurrentDirectory ( ) const
inlineoverridevirtual

Will return the current directory from the stack top.

Reimplemented from Assimp::IOSystem.

◆ DeleteFile()

bool Assimp::MemoryIOSystem::DeleteFile ( const std::string &  file)
inlineoverridevirtual

Will delete the file.

Reimplemented from Assimp::IOSystem.

◆ Exists()

bool Assimp::MemoryIOSystem::Exists ( const char pFile) const
inlineoverridevirtual

Tests for the existence of a file at the given path.

Implements Assimp::IOSystem.

◆ getOsSeparator()

char Assimp::MemoryIOSystem::getOsSeparator ( ) const
inlineoverridevirtual

Returns the directory separator.

Implements Assimp::IOSystem.

◆ Open()

IOStream * Assimp::MemoryIOSystem::Open ( const char pFile,
const char pMode = "rb" 
)
inlineoverridevirtual

Open a new file with a given path.

Implements Assimp::IOSystem.

◆ PopDirectory()

bool Assimp::MemoryIOSystem::PopDirectory ( )
inlineoverridevirtual

Will pop the upper directory.

Reimplemented from Assimp::IOSystem.

◆ PushDirectory()

bool Assimp::MemoryIOSystem::PushDirectory ( const std::string &  path)
inlineoverridevirtual

Will push the directory.

Reimplemented from Assimp::IOSystem.

◆ StackSize()

size_t Assimp::MemoryIOSystem::StackSize ( ) const
inlineoverridevirtual

Returns the stack size.

Reimplemented from Assimp::IOSystem.


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