5 #include "kretDbBlobS.hh"
15 KretDbBlobSIO::data (
int i) {
return ( (
kretDbBlobS *)bytePtr + i ); };
21 KretDbBlobSIO::read(FILE *f)
24 memset(bytePtr,0x00,bytes);
32 if(i>= KRETmxBlobSlen) {
33 fprintf(stderr,
"%d data too long for BlobS , ABORT\n",i);
39 if(comment) strncpy(s->comment,comment,KRETDbMaxComment-1);
47 KretDbBlobSIO::write(FILE *f)
58 if(i>= KRETmxBlobSlen) {
59 fprintf(stderr,
"Unexpected, too long data %d from BlobS , STOP\n",i);
63 setComment(s->comment);