2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: odr_tag.c,v 1.3 2005-01-15 19:47:14 adam Exp $
9 * \brief Implements ODR IMPLICIT tagging codec
17 int odr_peektag(ODR o, int *zclass, int *tag, int *cons)
19 if (o->direction != ODR_DECODE)
21 odr_seterror(o, OOTHER, 48);
24 if (o->op->stackp > -1 && !odr_constructed_more(o))
26 if (ber_dectag(o->bp, zclass, tag, cons, odr_max(o)) <= 0)
28 odr_seterror(o, OREQUIRED, 49);
34 int odr_implicit_settag(ODR o, int zclass, int tag)
46 int odr_initmember(ODR o, void *p, int size)
48 char **pp = (char **) p;
52 if (o->direction == ODR_DECODE)
53 *pp = (char *)odr_malloc(o, size);