VMS Help  —  TCPIP Services, Programming Interfaces, RPC XDR Routines, xdr_bytes
    Serializes and deserializes a counted byte array.
    Format
      #include  <tcpip$rpcxdr.h>
      bool_t xdr_bytes  (XDR *xdrs, char **bpp, u_int *sizep, u_int
                        maxsize);

1  –  Arguments

 xdrs
    A pointer to an XDR stream handle created by one of the XDR
    stream-handle creation routines.
 bpp
    A pointer to a pointer to the byte array.
 sizep
    A pointer to the length of the byte array.
 maxsize
    The maximum size of the length of the byte array.

2  –  Description

    A filter primitive that translates between a variable-length byte
    array and its external representation. The length of the array
    is located at sizep; the array cannot be longer than maxsize. If
    *bpp is NULL, xdr_bytes allocates maxsize bytes.

3  –  Return Values

    TRUE               Indicates success.
    FALSE              Indicates failure.
Close Help