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) {
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