/*
- * Copyright (C) 1995-2003, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
* 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.3 2005-01-15 19:47:11 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 <config.h>
#endif
#include <stdio.h>
#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.
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