28#ifndef _ODBLOB_H_INCLUDED_
29#define _ODBLOB_H_INCLUDED_
65 inline void* rdAddress();
66 inline void wrAddress(
const void*);
68 inline void rdBytes(
void* buf,
OdUInt32 len);
69 inline void wrBytes(
const void* buf,
OdUInt32 len);
77 inline void wrDoubles(
const double* doubles,
OdUInt32 num);
78 inline void rdDoubles(
double* doubles,
OdUInt32 num);
80 inline void rdObjectIds(OdDbStub** pRes,
OdUInt32 num);
81 inline OdDbStub* rdObjectId();
82 inline void wrObjectId(
const OdDbStub*
id);
90#define BLOB_DATA(type, name) \
91inline type OdBlob::rd##name() \
94 getBytes(&val, sizeof(type));\
97inline void OdBlob::wr##name(type val)\
98{ putBytes(&val, sizeof(type));}
110 getBytes(&val,
sizeof(val));
172 putBytes(doubles, num *
sizeof(
double));
177 getBytes(doubles, num *
sizeof(
double));
182 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)