20 char* dest = (
char*)pvBuffer;
21 size_t totalSize = pCount * pSize;
23 return sizeRead / pSize;
28 const char* dest = (
const char*)pvBuffer;
29 size_t totalSize = pCount * pSize;
36 if (pOrigin == aiOrigin_SET)
38 else if (pOrigin == aiOrigin_CUR)
40 else if (pOrigin == aiOrigin_END)
43 bool successful =
_stream->
seek(pOffset, streamOrigin);
44 return successful ? aiReturn_SUCCESS : aiReturn_FAILURE;
81 else if (pMode[0] ==
'w')
SLIOStreamMode
Enum of stream opening modes.
aiReturn Seek(size_t pOffset, aiOrigin pOrigin) override
size_t FileSize() const override
SLAssimpIOStream(SLIOStream *stream)
size_t Read(void *pvBuffer, size_t pSize, size_t pCount) override
size_t Write(const void *pvBuffer, size_t pSize, size_t pCount) override
size_t Tell() const override
Assimp::IOStream * Open(const char *pFile, const char *pMode) override
char getOsSeparator() const override
bool Exists(const char *pFile) const override
void Close(Assimp::IOStream *pFile) override
Interface for accessing external data using streams.
virtual bool seek(size_t offset, Origin origin)
virtual size_t write(const void *buffer, size_t size)
virtual size_t read(void *buffer, size_t size)
void close(SLIOStream *stream)
Closes and deletes a stream.
bool exists(std::string path, SLIOStreamKind kind)
Checks whether a given file exists.
SLIOStream * open(std::string path, SLIOStreamKind kind, SLIOStreamMode mode)
Opens a file stream for I/O operations.