YAZ 5.37.0
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

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

◆ BER_ANY_DEBUG

#define BER_ANY_DEBUG   0

Definition at line 46 of file ber_any.c.

Function Documentation

◆ ber_any()

int ber_any ( ODR o,
Odr_any ** p )

◆ completeBER()

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().

◆ completeBER_n()

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

Definition at line 48 of file ber_any.c.

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

Referenced by completeBER(), and completeBER_n().