CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
31 #if !defined(_ODFLATMEMSTREAM_H_INCLUDED_)
32 #define _ODFLATMEMSTREAM_H_INCLUDED_
52 template <
class TBase = OdEmptyBaseClass>
70 template <
class TBase = OdEmptyBaseClass>
162 template<
class TBase>
164 m_pMemData = pMemData;
165 m_nEndPos = nCurPos + nSize;
170 template<
class TBase>
175 nNewPos = m_nEndPos +
offset;
178 nNewPos = m_nCurPos +
offset;
187 if(nNewPos > m_nEndPos)
189 return (m_nCurPos = nNewPos);
192 template<
class TBase>
196 return *(
data() + m_nCurPos++);
199 template<
class TBase>
207 template<
class TBase>
209 if(m_nCurPos < m_nEndPos)
210 *(
data() + m_nCurPos++) = val;
215 template<
class TBase>
217 if(m_nCurPos + nLen <= m_nEndPos) {
228 #endif // !defined(_ODFLATMEMSTREAM_H_INCLUDED_)
OdSmartPtr< OdFlatMemStream > OdFlatMemStreamPtr
virtual void append(OdUInt64 numBytes)
void getBytes(void *buffer, OdUInt32 numBytes)
static OdFlatMemStreamPtr createNew(OdUInt64 numBytes)
~OdFlatMemStreamManaged()
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
ALLOCDLL_EXPORT void odrxFree(void *pMemBlock)
OdFlatMemStreamImpl(void *buffer, OdUInt64 numBytes, OdUInt64 nCurPos)
static OdFlatMemStreamPtr createNew(void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
OdUInt64 seek(OdInt64 offset, OdDb::FilerSeekType seekType)
ODRX_DECLARE_MEMBERS(OdFlatMemStream)
ALLOCDLL_EXPORT void * odrxAlloc(size_t nBytes)
void copyDataTo(OdStreamBuf *pDestination, OdUInt64 sourceStart, OdUInt64 sourceEnd)
void init(void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
GLsizei const GLfloat * value
void putBytes(const void *buffer, OdUInt32 numBytes)
void putByte(OdUInt8 value)