/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
return 0;
}
-int odr_write(ODR o, unsigned char *buf, int bytes)
+int odr_write2(ODR o, const char *buf, int bytes)
{
if (o->pos + bytes >= o->size && odr_grow_block(o, bytes))
{
return 0;
}
+int odr_write(ODR o, unsigned char *buf, int bytes)
+{
+ return odr_write2(o, (char *) buf, bytes);
+}
+
int odr_seek(ODR o, int whence, int offset)
{
if (whence == ODR_S_CUR)