CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
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]);
377 #else // #ifdef ODA_BIGENDIAN
382 streamBuf.
putBytes(p2Doubles,
sizeof(
double)*2);
387 streamBuf.
putBytes(p3Doubles,
sizeof(
double)*3);
392 streamBuf.
putBytes(pDoubles,
sizeof(
double) * n);
395 #endif // ODA_BIGENDIAN
397 #endif // _OD_PLATFORMSTREAMER_H_
virtual void getBytes(void *buffer, OdUInt32 numBytes)
OdChar * getBuffer(int minBufLength)
void releaseBuffer(int newLength=-1)
ODA_ASSUME(sizeof(OdRxValue)==32)
OdChar * getBufferSetLength(int length)
virtual void putBytes(const void *buffer, OdUInt32 numBytes)
GLsizei const GLfloat * value
const OdChar * c_str() const