ixp_pdata(3)

ixp_pdata3

Usage

#include <ixp.h>
void ixp_pdata(IxpMsg *msg, char **data, uint len);

Overview

Packs or unpacks a raw character buffer of size len.

If msg->mode is MsgPack, buffer pointed to by data is packed into the buffer at msg->pos. If msg->mode is MsgUnpack, the address pointed to by s is loaded with a malloc(3) allocated buffer with the contents of the buffer at msg->pos. In either case, msg->pos is advanced by the number of bytes read or written. If the action would advance msg->pos beyond msg->end, msg->pos is still advanced but no other action is taken.

Releases

Unchanged in 4 releases since Debian 8 (Jessie).

  1. 8–11

From libixp-dev 0.6~20121202+hg148-5 in Debian 11 (Bullseye). Parsed by carta from the page's man source.