MySQL 9.1.0
Source Code Documentation
xdr_mem.c File Reference

If you have some data to be interpreted as external data representation or to be converted to external data representation in a memory buffer, then this is the package for you. More...

#include <limits.h>
#include <rpc/rpc.h>
#include <string.h>

Functions

static bool_t xdrmem_getlong (XDR *, long *)
 
static bool_t xdrmem_putlong (XDR *, const long *)
 
static bool_t xdrmem_getbytes (XDR *, caddr_t, u_int)
 
static bool_t xdrmem_putbytes (XDR *, const char *, u_int)
 
static u_int xdrmem_getpos (const XDR *)
 
static bool_t xdrmem_setpos (XDR *, u_int)
 
static int32_t * xdrmem_inline (XDR *, u_int)
 
static void xdrmem_destroy (XDR *)
 
static bool_t xdrmem_getint32 (XDR *, int32_t *)
 
static bool_t xdrmem_putint32 (XDR *, const int32_t *)
 
void xdrmem_create (XDR *xdrs, const caddr_t addr, u_int size, enum xdr_op op)
 

Variables

static const struct xdr_ops xdrmem_ops
 

Detailed Description

If you have some data to be interpreted as external data representation or to be converted to external data representation in a memory buffer, then this is the package for you.

Function Documentation

◆ xdrmem_create()

void xdrmem_create ( XDR xdrs,
const caddr_t  addr,
u_int  size,
enum xdr_op  op 
)

◆ xdrmem_destroy()

static void xdrmem_destroy ( XDR xdrs)
static

◆ xdrmem_getbytes()

static bool_t xdrmem_getbytes ( XDR xdrs,
caddr_t  addr,
u_int  len 
)
static

◆ xdrmem_getint32()

static bool_t xdrmem_getint32 ( XDR xdrs,
int32_t *  ip 
)
static

◆ xdrmem_getlong()

static bool_t xdrmem_getlong ( XDR xdrs,
long *  lp 
)
static

◆ xdrmem_getpos()

static u_int xdrmem_getpos ( const XDR xdrs)
static

◆ xdrmem_inline()

static int32_t * xdrmem_inline ( XDR xdrs,
u_int  len 
)
static

◆ xdrmem_putbytes()

static bool_t xdrmem_putbytes ( XDR xdrs,
const char *  addr,
u_int  len 
)
static

◆ xdrmem_putint32()

static bool_t xdrmem_putint32 ( XDR xdrs,
const int32_t *  ip 
)
static

◆ xdrmem_putlong()

static bool_t xdrmem_putlong ( XDR xdrs,
const long *  lp 
)
static

◆ xdrmem_setpos()

static bool_t xdrmem_setpos ( XDR xdrs,
u_int  pos 
)
static

Variable Documentation

◆ xdrmem_ops

const struct xdr_ops xdrmem_ops
static
Initial value:
= {
static int32_t * xdrmem_inline(XDR *, u_int)
Definition: xdr_mem.c:154
static void xdrmem_destroy(XDR *)
Definition: xdr_mem.c:70
static bool_t xdrmem_getbytes(XDR *, caddr_t, u_int)
Definition: xdr_mem.c:104
static bool_t xdrmem_putlong(XDR *, const long *)
Definition: xdr_mem.c:90
static bool_t xdrmem_putbytes(XDR *, const char *, u_int)
Definition: xdr_mem.c:116
static bool_t xdrmem_getint32(XDR *, int32_t *)
Definition: xdr_mem.c:170
static bool_t xdrmem_putint32(XDR *, const int32_t *)
Definition: xdr_mem.c:183
static u_int xdrmem_getpos(const XDR *)
Definition: xdr_mem.c:128
static bool_t xdrmem_setpos(XDR *, u_int)
Definition: xdr_mem.c:135
static bool_t xdrmem_getlong(XDR *, long *)
Definition: xdr_mem.c:77