yw_packet_append_bindata

Name

yw_packet_append_bindata -- append binary data word at the end of packet

Synopsis


     #include <yw/packet.h>
   

void yw_packet_append_bindata(YwPacket *pkt, const void *ptr, int len);

DESCRIPTION

This function appends one word of type yw_bindata_word at the end of packet pkt. Word to be appended is taken will contain copy of len bytes pointed by ptr. You should note, that bindata words are to be used mainly for data which are in fact binary, and hasn't got much internal structure, like bitmaps, sound samples etc. Using it for passing data structures is not sign of good style.

SEE ALSO

yw_make_packet (3),

INFO

Generated from: packet.c,v 1.10 2001/05/21 09:58:51 malekith Exp.