YAZ  5.23.1
Macros | Functions
ber_any.c File Reference

Implements BER ANY encoding and decoding. More...

#include <assert.h>
#include "odr-priv.h"

Go to the source code of this file.

Macros

#define BER_ANY_DEBUG   0
 

Functions

int ber_any (ODR o, Odr_any **p)
 
int completeBER_n (const char *buf, int len, int level)
 
int completeBER (const char *buf, int len)
 determine whether a buffer is a complete BER buffer More...
 

Detailed Description

Implements BER ANY encoding and decoding.

This source file implements BER encoding and decoding of the ANY type.

Definition in file ber_any.c.

Macro Definition Documentation

#define BER_ANY_DEBUG   0

Definition at line 46 of file ber_any.c.

Function Documentation

int ber_any ( ODR  o,
Odr_any **  p 
)
int completeBER ( const char *  buf,
int  len 
)

determine whether a buffer is a complete BER buffer

Parameters
bufBER buffer
lenlength of buffer
Return values
0package is incomplete
>0package is complete and length is return value

Definition at line 123 of file ber_any.c.

References completeBER_n(), yaz_log(), and YLOG_LOG.

Referenced by ber_any(), and cs_complete_auto_x().

int completeBER_n ( const char *  buf,
int  len,
int  level 
)

Definition at line 48 of file ber_any.c.

References ber_declen(), ber_dectag(), yaz_log(), and YLOG_LOG.

Referenced by completeBER().