libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

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 IlenR.
     17 
     18 .P
     19 If ImsgR\->mode is MsgPack, buffer pointed to by IdataR is
     20 packed into the buffer at ImsgR\->pos. If ImsgR\->mode is
     21 MsgUnpack, the address pointed to by IsR is loaded with a
     22 malloc(3) allocated buffer with the contents of the buffer at
     23 ImsgR\->pos.  In either case, ImsgR\->pos is advanced by the
     24 number of bytes read or written. If the action would advance
     25 ImsgR\->pos beyond ImsgR\->end, ImsgR\->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