BRL-CAD
#include "common.h"
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <string.h>
#include "bu/cv.h"
Include dependency graph for xdr.c:

Go to the source code of this file.

Functions

unsigned char * bu_pshort (register unsigned char *msgp, register uint16_t s)
 
uint16_t bu_gshort (const unsigned char *msgp)
 
unsigned char * bu_plong (register unsigned char *msgp, register uint32_t l)
 
uint32_t bu_glong (const unsigned char *msgp)
 
unsigned char * bu_plonglong (register unsigned char *msgp, register uint64_t l)
 

Detailed Description

DEPRECATED.

Routines to implement an external data representation (XDR) compatible with the usual InterNet standards, e.g.: big-endian, twos-complement fixed point, and IEEE floating point.

Routines to insert/extract short/long's into char arrays, independent of machine byte order and word-alignment. Uses encoding compatible with routines found in libpkg, and BSD system routines htonl(), htons(), ntohl(), ntohs().

Definition in file xdr.c.

Function Documentation

unsigned char* bu_pshort ( register unsigned char *  msgp,
register uint16_t  s 
)

Definition at line 32 of file xdr.c.

unsigned char* bu_plong ( register unsigned char *  msgp,
register uint32_t  l 
)

Definition at line 52 of file xdr.c.

unsigned char* bu_plonglong ( register unsigned char *  msgp,
register uint64_t  l 
)

Definition at line 76 of file xdr.c.