MySQL 9.1.0
Source Code Documentation
xdr_sizeof.c File Reference

General purpose routine to see how much space something will use when serialized using XDR. More...

#include <rpc/types.h>
#include <rpc/xdr.h>
#include <stdlib.h>
#include <sys/types.h>

Functions

static bool_t x_putlong (XDR *xdrs, const long *longp)
 
static bool_t x_putbytes (XDR *xdrs, const char *bp, u_int len)
 
static u_int x_getpostn (const XDR *xdrs)
 
static bool_t x_setpostn (XDR *xdrs, u_int len)
 
static int32_t * x_inline (XDR *xdrs, u_int len)
 
static int harmless (void)
 
static void x_destroy (XDR *xdrs)
 
static bool_t x_putint32 (XDR *xdrs, const int32_t *int32p)
 
unsigned long xdr_sizeof (xdrproc_t func, void *data)
 

Detailed Description

General purpose routine to see how much space something will use when serialized using XDR.

Function Documentation

◆ harmless()

static int harmless ( void  )
static

◆ x_destroy()

static void x_destroy ( XDR xdrs)
static

◆ x_getpostn()

static u_int x_getpostn ( const XDR xdrs)
static

◆ x_inline()

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

◆ x_putbytes()

static bool_t x_putbytes ( XDR xdrs,
const char *  bp,
u_int  len 
)
static

◆ x_putint32()

static bool_t x_putint32 ( XDR xdrs,
const int32_t *  int32p 
)
static

◆ x_putlong()

static bool_t x_putlong ( XDR xdrs,
const long *  longp 
)
static

◆ x_setpostn()

static bool_t x_setpostn ( XDR xdrs,
u_int  len 
)
static

◆ xdr_sizeof()

unsigned long xdr_sizeof ( xdrproc_t  func,
void *  data 
)