25 #ifndef _OD_PLATFORMSTREAMER_H_
26 #define _OD_PLATFORMSTREAMER_H_
178 streamBuf.
getBytes(&res,
sizeof(res));
185 streamBuf.
getBytes(&res,
sizeof(res));
192 streamBuf.
getBytes(&res,
sizeof(res));
199 streamBuf.
getBytes(&res,
sizeof(res));
218 streamBuf.
getBytes(pRes2Doubles,
sizeof(
double)*2);
225 streamBuf.
getBytes(pRes3Doubles,
sizeof(
double)*3);
233 streamBuf.
getBytes(pResDoubles,
sizeof(
double)*n);
234 double* pD = (
double*)pResDoubles;
241 streamBuf.
putBytes(&val,
sizeof(val));
246 streamBuf.
putBytes(&val,
sizeof(val));
251 streamBuf.
putBytes(&val,
sizeof(val));
256 streamBuf.
putBytes(&val,
sizeof(val));
262 streamBuf.
putBytes(&val,
sizeof(val));
268 #if ODCHAR_IS_INT16LE
288 for ( ; *tmp16; tmp16++)
290 finalSize =
size - 1;
304 #ifndef ODCHAR_IS_INT16LE
305 #error "OdaDefs.h must be included before OdPlatformStreamer.h"
311 #if ODCHAR_IS_INT16LE
326 #if ODCHAR_IS_INT16LE
340 #if ODCHAR_IS_INT16LE
351 #if ODCHAR_IS_INT16LE
353 #error "ODCHAR_IS_INT16LE is defined for a big endian platform"
363 wrDouble(streamBuf, *(((
double*)p2Doubles)+0));
364 wrDouble(streamBuf, *(((
double*)p2Doubles)+1));
368 wrDouble(streamBuf, *(((
double*)p3Doubles)+0));
369 wrDouble(streamBuf, *(((
double*)p3Doubles)+1));
370 wrDouble(streamBuf, *(((
double*)p3Doubles)+2));
374 while(n--)
wrDouble(streamBuf, ((
double*)pDoubles)[n]);
382 streamBuf.
putBytes(p2Doubles,
sizeof(
double)*2);
387 streamBuf.
putBytes(p3Doubles,
sizeof(
double)*3);
392 streamBuf.
putBytes(pDoubles,
sizeof(
double) * n);
ODA_ASSUME(sizeof(OdRxValue)==32)
virtual void getBytes(void *buffer, OdUInt32 numBytes)
virtual void putBytes(const void *buffer, OdUInt32 numBytes)
const OdChar * c_str() const
OdChar * getBufferSetLength(int length)
OdChar * getBuffer(int minBufLength)
void releaseBuffer(int newLength=-1)
GLsizei const GLfloat * value