X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fodr.h;h=9b70faf6b700f40226660dd2e3d6264ea01ecd32;hb=f0c297969e3fe8d043ef18022180b305b21b24a9;hp=9c4f6581336ad4bafc2ba19c79b2dcbcff059f49;hpb=3cef72d7093afaa8b106e4160ef0885b2ac50335;p=yaz-moved-to-github.git diff --git a/include/yaz/odr.h b/include/yaz/odr.h index 9c4f658..9b70faf 100644 --- a/include/yaz/odr.h +++ b/include/yaz/odr.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2004, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -23,7 +23,12 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: odr.h,v 1.16 2004-08-13 07:30:06 adam Exp $ + * $Id: odr.h,v 1.19 2005-01-27 09:04:07 adam Exp $ + */ + +/** + * \file odr.h + * \brief Header for ODR (Open Data Representation) */ #ifndef ODR_H @@ -118,10 +123,10 @@ typedef struct odr int can_grow; /* are we allowed to reallocate */ unsigned char *buf; /* memory handle */ - int size; /* current buffer size */ + int size; /* current buffer size (encoding+decoding) */ - int pos; /* current position */ - int top; /* top of buffer (max pos when decoding) */ + int pos; /* current position (encoding) */ + int top; /* top of buffer (max pos when encoding) */ const unsigned char *bp; /* position in buffer (decoding) */