2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: odr_tag.c,v 1.5 2005-08-11 14:21:55 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 (ODR_STACK_NOT_EMPTY(o) && !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);
64 * indent-tabs-mode: nil
66 * vim: shiftwidth=4 tabstop=8 expandtab