34 memcpy((*p)->buf, o->
op->
bp, res);
39 if (
odr_write(o, (*p)->buf, (*p)->len) < 0)
46 #define BER_ANY_DEBUG 0
50 int res, ll, zclass, tag, cons;
62 if (!buf[0] && !buf[1])
64 if ((res =
ber_dectag(b, &zclass, &tag, &cons, len)) <= 0)
103 level, ll, len, res);
110 if (b[0] == 0 && b[1] == 0)
120 return (b - buf) + 2;
int completeBER(const char *buf, int len)
determine whether a buffer is a complete BER buffer
int ber_any(ODR o, Odr_any **p)
int completeBER_n(const char *buf, int len, int level)
int ber_declen(const char *buf, int *len, int max)
int ber_dectag(const char *cp, int *zclass, int *tag, int *constructed, int max)
Decodes BER identifier octets.
void yaz_log(int level, const char *fmt,...)
Writes log message.
#define YLOG_LOG
log level: log (regular)
Internal ODR definitions.
void odr_seterror(ODR o, int error, int id)
int odr_write(ODR o, const char *buf, int bytes)
void * odr_malloc(ODR o, size_t size)