28 #ifndef _ODBLOB_H_INCLUDED_
29 #define _ODBLOB_H_INCLUDED_
56 inline void* rdAddress();
57 inline void wrAddress(
const void*);
59 inline void rdBytes(
void* buf,
OdUInt32 len);
60 inline void wrBytes(
const void* buf,
OdUInt32 len);
68 inline void wrDoubles(
const double* doubles,
OdUInt32 num);
69 inline void rdDoubles(
double* doubles,
OdUInt32 num);
71 inline void rdObjectIds(OdDbStub** pRes,
OdUInt32 num);
72 inline OdDbStub* rdObjectId();
73 inline void wrObjectId(
const OdDbStub*
id);
81 #define BLOB_DATA(type, name) \
82 inline type OdBlob::rd##name() \
85 getBytes(&val, sizeof(type));\
88 inline void OdBlob::wr##name(type val)\
89 { putBytes(&val, sizeof(type));}
101 getBytes(&val,
sizeof(val));
163 putBytes(doubles, num *
sizeof(
double));
168 getBytes(doubles, num *
sizeof(
double));
173 getBytes(pRes, num *
sizeof(OdDbStub*));
#define BLOB_DATA(type, name)
void wrDoubles(const double *doubles, OdUInt32 num)
void wrPoints3d(const OdGePoint3d *points, OdUInt32 num)
void wrObjectId(const OdDbStub *id)
void rdDoubles(double *doubles, OdUInt32 num)
OdGeVector3d rdVector3d()
void wrAddress(const void *)
void wrPoint3d(const OdGePoint3d &)
void rdPoints2d(OdGePoint2d *points, OdUInt32 num)
void rdObjectIds(OdDbStub **pRes, OdUInt32 num)
void wrPoints2d(const OdGePoint2d *points, OdUInt32 num)
OdBlob(OdUInt32 nPageSize=0x1000)
void wrVector3d(const OdGeVector3d &)
void wrBytes(const void *buf, OdUInt32 len)
void rdBytes(void *buf, OdUInt32 len)
void rdPoints3d(OdGePoint3d *points, OdUInt32 num)
void putBytes(const void *buffer, OdUInt32 nLen)
void getBytes(void *buffer, OdUInt32 nLen)
void setPageDataSize(OdUInt32 nPageSize)