YAZ 5.37.0
ber_int.c File Reference

Implements BER INTEGER encoding and decoding. More...

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

Go to the source code of this file.

Functions

static int ber_encinteger (ODR o, Odr_int val)
static int ber_decinteger (const char *buf, Odr_int *val, int max)
int ber_integer (ODR o, Odr_int *val)

Detailed Description

Implements BER INTEGER encoding and decoding.

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

Definition in file ber_int.c.

Function Documentation

◆ ber_decinteger()

int ber_decinteger ( const char * buf,
Odr_int * val,
int max )
static

Definition at line 88 of file ber_int.c.

References ber_declen().

Referenced by ber_integer().

◆ ber_encinteger()

int ber_encinteger ( ODR o,
Odr_int val )
static

Definition at line 61 of file ber_int.c.

References ber_enclen(), and odr_write().

Referenced by ber_integer().

◆ ber_integer()

int ber_integer ( ODR o,
Odr_int * val )