X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fber_len.c;h=bc12463f87e36285bec2e8f0fc6607da6c5298a1;hb=05c274ef315384faafcc5900c17468f0ea2474e6;hp=bb4c08af9cdf0190a48b4d7ef043258c0ee4e6d1;hpb=0420d74c15267c4cb7903503b51937f836096b7a;p=yaz-moved-to-github.git diff --git a/src/ber_len.c b/src/ber_len.c index bb4c08a..bc12463 100644 --- a/src/ber_len.c +++ b/src/ber_len.c @@ -1,10 +1,18 @@ /* - * Copyright (C) 1995-2003, Index Data. + * Copyright (C) 1995-2004, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: ber_len.c,v 1.1 2003-10-27 12:21:30 adam Exp $ + * $Id: ber_len.c,v 1.2 2004-10-15 00:18:59 adam Exp $ */ + +/** + * \file ber_len.c + * \brief Implements BER length octet encoding and decoding + * + * This source file implements BER encoding and decoding of + * the length octets. + */ + #if HAVE_CONFIG_H #include #endif @@ -12,7 +20,8 @@ #include #include "odr-priv.h" -/* +/** + * ber_enclen: * Encode BER length octets. If exact, lenlen is the exact desired * encoding size, else, lenlen is the max available space. Len < 0 = * Indefinite encoding. @@ -78,7 +87,8 @@ int ber_enclen(ODR o, int len, int lenlen, int exact) return odr_tell(o) - lenpos; } -/* +/** + * ber_declen: * Decode BER length octets. Returns * > 0 : number of bytes read * -1 : not enough room to read bytes within max bytes