25#ifndef _OD_PLATFORMSTREAMER_H_
26#define _OD_PLATFORMSTREAMER_H_
189 streamBuf.
getBytes(&res,
sizeof(res));
196 streamBuf.
getBytes(&res,
sizeof(res));
203 streamBuf.
getBytes(&res,
sizeof(res));
210 streamBuf.
getBytes(&res,
sizeof(res));
217 streamBuf.
getBytes(&res,
sizeof(res));
236 streamBuf.
getBytes(pRes2Doubles,
sizeof(
double)*2);
243 streamBuf.
getBytes(pRes3Doubles,
sizeof(
double)*3);
251 streamBuf.
getBytes(pResDoubles,
sizeof(
double)*n);
252 double* pD = (
double*)pResDoubles;
259 streamBuf.
putBytes(&val,
sizeof(val));
264 streamBuf.
putBytes(&val,
sizeof(val));
269 streamBuf.
putBytes(&val,
sizeof(val));
274 streamBuf.
putBytes(&val,
sizeof(val));
279 streamBuf.
putBytes(&val,
sizeof(val));
285 streamBuf.
putBytes(&val,
sizeof(val));
311 for ( ; *tmp16; tmp16++)
313 finalSize =
size - 1;
327#ifndef ODCHAR_IS_INT16LE
328#error "OdaDefs.h must be included before OdPlatformStreamer.h"
338 for (
OdInt32 i = 0; i < nLen; i++)
353 for (
OdInt32 i = 0; i < nLen; ++i)
366 for (
OdInt32 i = 0; i < nLen; ++i)
376#error "ODCHAR_IS_INT16LE is defined for a big endian platform"
386 wrDouble(streamBuf, *(((
double*)p2Doubles)+0));
387 wrDouble(streamBuf, *(((
double*)p2Doubles)+1));
391 wrDouble(streamBuf, *(((
double*)p3Doubles)+0));
392 wrDouble(streamBuf, *(((
double*)p3Doubles)+1));
393 wrDouble(streamBuf, *(((
double*)p3Doubles)+2));
397 const double* pD = (
const double*)pDoubles;
410 streamBuf.
putBytes(p2Doubles,
sizeof(
double)*2);
415 streamBuf.
putBytes(p3Doubles,
sizeof(
double)*3);
420 streamBuf.
putBytes(pDoubles,
sizeof(
double) * n);
virtual void getBytes(void *buffer, OdUInt32 numBytes)
virtual void putBytes(const void *buffer, OdUInt32 numBytes)
OdChar * getBufferSetLength(int length)
OdChar * getBuffer(int minBufLength)
const OdChar * c_str() const
void releaseBuffer(int newLength=-1)
GLsizei const GLfloat * value