|
NAMESTRUCTS_DATA_TYPE ,
STRUCTS_FIXEDDATA_TYPE —
structs types for binary data
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include
<pdel/structs/structs.h>
#include
<pdel/structs/type/data.h>
extern const struct structs_type
structs_type_data;
DESCRIPTIONTheSTRUCTS_DATA_TYPE () and
STRUCTS_FIXEDDATA_TYPE () macros define a
structs(3)
type (i.e., a struct structs_type ) for describing
variable and fixed length binary data, respectively.
For struct structs_data { u_int length; /* number of bytes */ u_char *data; /* bytes */ }; The length field contains the number of
bytes in the sequence. The data itself is pointed to by
data. mtype is the
typed_mem(3)
type used to dynamically allocate the buffer pointed to by
data. The ASCII form of the data is a base-64 encoding
using the character set specified by charset, or the
default charset if charset is
Two variable length types are predefined.
SEE ALSObase64(3), libpdel(3), structs(3), structs_type(3), typed_mem(3)HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |