#include <SLAssimpIOSystem.h>
Inherits Assimp::IOStream.
Definition at line 18 of file SLAssimpIOSystem.h.
◆ SLAssimpIOStream()
SLAssimpIOStream::SLAssimpIOStream |
( |
SLIOStream * |
stream | ) |
|
◆ FileSize()
size_t SLAssimpIOStream::FileSize |
( |
| ) |
const |
|
override |
◆ Flush()
void SLAssimpIOStream::Flush |
( |
| ) |
|
|
override |
◆ Read()
size_t SLAssimpIOStream::Read |
( |
void * |
pvBuffer, |
|
|
size_t |
pSize, |
|
|
size_t |
pCount |
|
) |
| |
|
override |
Definition at line 18 of file SLAssimpIOSystem.cpp.
20 char* dest = (
char*)pvBuffer;
21 size_t totalSize = pCount * pSize;
23 return sizeRead / pSize;
virtual size_t read(void *buffer, size_t size)
◆ Seek()
aiReturn SLAssimpIOStream::Seek |
( |
size_t |
pOffset, |
|
|
aiOrigin |
pOrigin |
|
) |
| |
|
override |
Definition at line 33 of file SLAssimpIOSystem.cpp.
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;
virtual bool seek(size_t offset, Origin origin)
◆ stream()
◆ Tell()
size_t SLAssimpIOStream::Tell |
( |
| ) |
const |
|
override |
◆ Write()
size_t SLAssimpIOStream::Write |
( |
const void * |
pvBuffer, |
|
|
size_t |
pSize, |
|
|
size_t |
pCount |
|
) |
| |
|
override |
Definition at line 26 of file SLAssimpIOSystem.cpp.
28 const char* dest = (
const char*)pvBuffer;
29 size_t totalSize = pCount * pSize;
virtual size_t write(const void *buffer, size_t size)
◆ _stream
The documentation for this class was generated from the following files: