|
Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
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 current directory to the given path. | |
| 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 |
| CReates an new directory at the given path. | |
| const std::string & | CurrentDirectory () const override |
| Returns the top directory from the stack. | |
| bool | DeleteFile (const std::string &file) override |
| Will delete the given 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. | |
| IOStream * | Open (const char *pFile, const char *pMode="rb") override |
| Open a new file with a given path. | |
| bool | PopDirectory () override |
| Pops the top directory from the stack. | |
| bool | PushDirectory (const std::string &path) override |
| Pushes a new directory onto the directory stack. | |
| size_t | StackSize () const override |
| Returns the number of directories stored on the stack. | |
| ~MemoryIOSystem () | |
| 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 constructor. | |
| IOStream * | Open (const std::string &pFile, const std::string &pMode=std::string("rb")) |
| For backward compatibility. | |
| virtual | ~IOSystem () |
| Virtual destructor. | |
Dummy IO system to read from a memory buffer.
Constructor.
|
inline |
Destructor.
Will change the current directory to the given path.
| path | [in] The path to change to. |
Reimplemented from Assimp::IOSystem.
Closes the given file and releases all resources associated with it.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Compare two paths.
Reimplemented from Assimp::IOSystem.
CReates an new directory at the given path.
| path | [in] The path to create. |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the top directory from the stack.
Reimplemented from Assimp::IOSystem.
Will delete the given file.
| file | [in] The filename |
Reimplemented from Assimp::IOSystem.
Tests for the existence of a file at the given path.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the directory separator.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Open a new file with a given path.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Pops the top directory from the stack.
Reimplemented from Assimp::IOSystem.
Pushes a new directory onto the directory stack.
| path | Path to push onto the stack. |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the number of directories stored on the stack.
Reimplemented from Assimp::IOSystem.