Commit 6308d2ab authored by lw's avatar lw

*** empty log message ***

parent 8dbf9fc3
......@@ -12,3 +12,4 @@ pdrfile <pdr_dbs_sFile failed> /error
notmapped <snapshot file is not mapped> /error
badsect <section does not exist> /error
badoffs <offset is out of scope> /error
nosuchbody <no such body exists> /error
......@@ -178,7 +178,7 @@ wb_vrepdbs::abort(pwr_tStatus *sts)
bool
wb_vrepdbs::writeAttribute(pwr_tStatus *sts, wb_orep *o, cdh_eBix bix, unsigned int offset, unsigned int size, void *p)
{
//*sts = LDH__NYI;
*sts = LDH__NYI;
return false;
}
......@@ -186,14 +186,28 @@ wb_vrepdbs::writeAttribute(pwr_tStatus *sts, wb_orep *o, cdh_eBix bix, unsigned
void *
wb_vrepdbs::readAttribute(pwr_tStatus *sts, wb_orep *o, cdh_eBix bix, unsigned int offset, unsigned int size, void *p)
{
//*sts = LDH__NYI;
return 0;
*sts = LDH__SUCCESS;
dbs_sObject *op = ((wb_orepdbs *)o)->o();
void *bp = dbs_Body(sts, dbsenv(), op, bix);
if (bp == 0)
return 0;
if (p) {
memcpy(p, bp, MIN(op->rbody.size, size));
return p;
}
return bp;
}
void *
wb_vrepdbs::readBody(pwr_tStatus *sts, wb_orep *o, cdh_eBix bix, void *p)
{
*sts = LDH__SUCCESS;
dbs_sObject *op = ((wb_orepdbs *)o)->o();
void *bp = dbs_Body(sts, dbsenv(), op, bix);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment