Odr_oct *p = (Odr_oct *) odr_malloc(o, sizeof(Odr_oct));
p->buf = (char *) odr_malloc(o, sz);
memcpy(p->buf, buf, sz);
-#if OCT_SIZE
- p->size = sz;
-#endif
p->len = sz;
return p;
}
return 0;
}
-int odr_write2(ODR o, const char *buf, int bytes)
+int odr_write(ODR o, const char *buf, int bytes)
{
if (o->pos + bytes >= o->size && odr_grow_block(o, bytes))
{