ixp_pdata.3 (869B)
1 .TH "IXP_PDATA" 3 "2010 Jun" "libixp Manual" 2 3 .SH NAME 4 .P 5 ixp_pdata 6 7 .SH SYNOPSIS 8 .nf 9 #include <ixp.h> 10 11 void ixp_pdata(IxpMsg *msg, char **data, uint len); 12 .fi 13 14 .SH DESCRIPTION 15 .P 16 Packs or unpacks a raw character buffer of size IlenR. 17 18 .P 19 If ImsgR\->mode is MsgPack, buffer pointed to by IdataR is 20 packed into the buffer at ImsgR\->pos. If ImsgR\->mode is 21 MsgUnpack, the address pointed to by IsR is loaded with a 22 malloc(3) allocated buffer with the contents of the buffer at 23 ImsgR\->pos. In either case, ImsgR\->pos is advanced by the 24 number of bytes read or written. If the action would advance 25 ImsgR\->pos beyond ImsgR\->end, ImsgR\->pos is still advanced 26 but no other action is taken. 27 28 .SH SEE ALSO 29 .P 30 IxpMsg(3), ixp_pstring(3) 31 32 33 .\" man code generated by txt2tags 2.5 (http://txt2tags.sf.net) 34 .\" cmdline: txt2tags -o- ixp_pdata.man3 35