31#if !defined(_ODFLATMEMSTREAM_H_INCLUDED_)
32#define _ODFLATMEMSTREAM_H_INCLUDED_
53template <
class TBase = OdEmptyBaseClass>
73template <
class TBase = OdEmptyBaseClass>
167 m_pMemData = pMemData;
168 m_nEndPos = nCurPos + nSize;
178 nNewPos = m_nEndPos +
offset;
181 nNewPos = m_nCurPos +
offset;
190 if(nNewPos > m_nEndPos)
192 return (m_nCurPos = nNewPos);
199 return *(
data() + m_nCurPos++);
212 if(m_nCurPos < m_nEndPos)
213 *(
data() + m_nCurPos++) = val;
220 if(m_nCurPos + nLen <= m_nEndPos) {
OdSmartPtr< OdFlatMemStream > OdFlatMemStreamPtr
ALLOCDLL_EXPORT void * odrxAlloc(size_t nBytes)
ALLOCDLL_EXPORT void odrxFree(void *pMemBlock)
ODRX_DECLARE_MEMBERS(OdFlatMemStream)
static OdFlatMemStreamPtr createNew(void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
void copyDataTo(OdStreamBuf *pDestination, OdUInt64 sourceStart, OdUInt64 sourceEnd)
OdFlatMemStreamImpl(void *buffer, OdUInt64 numBytes, OdUInt64 nCurPos)
void putByte(OdUInt8 value)
void putBytes(const void *buffer, OdUInt32 numBytes)
virtual void append(OdUInt64 numBytes)
void init(void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
void getBytes(void *buffer, OdUInt32 numBytes)
~OdFlatMemStreamManaged()
static OdFlatMemStreamPtr createNew(OdUInt64 numBytes)
OdUInt64 seek(OdInt64 offset, OdDb::FilerSeekType seekType)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
GLsizei const GLfloat * value