P(3)

PACKAGE
p - Low level routines to convert data

PURPOSE
These routines are meant to provide a low level means of converting C data types to the "network" data format (ie. big endian, IEEE 754). These are memory to memory routines only. Although they are made public, their use is NOT recommended. When reading or writing raw data from and to files or connections, the <-pio-> routines are suggested.

LIBRARY
karma

LINK WITH
-lkarma

FUNCTIONS

p_write_buf_float
    Write a floating point number to a buffer.

p_write_buf_float_trap
    Write a floating point number to a buffer, trapping blanks.

p_read_buf_float
    Read a floating point number from a buffer.

p_read_buf_floats
    Read floating point data from a buffer, trapping NaNs.

p_write_buf_double
    Write a double precision floating point number to a buffer.

p_write_buf_double_trap
    Write a dfloating point number to a buffer, trapping blanks.

p_read_buf_double
    Read a double precision floating point number from a buffer.

p_read_buf_doubles
    Read double floating point data from a buffer, trapping NaNs.

p_write_buf16s
    Write 16 bits of signed data to a buffer,

p_read_buf16s
    Read 16 bits of signed data from a buffer.

p_write_buf32s
    Write 32 bits of signed data to a buffer,

p_read_buf32s
    Read 32 bits of signed data from a buffer.

p_write_buf16
    Write 16 bits of unsigned data to a buffer,

p_read_buf16
    Read 16 bits of unsigned data from a buffer.

p_write_buf32
    Write 32 bits of unsigned data to a buffer,

p_read_buf32
    Read 32 bits of unsigned data from a buffer.

p_write_buf64
    Write 64 bits of data to a buffer.

p_read_buf64
    Read 64 bits of signed data from a buffer.

AUTHOR
Richard Gooch (rgooch@atnf.csiro.au)

AVAILABLITY
The Karma Distribution is available for anonymous ftp from: ftp://ftp.atnf.csiro.au/pub/software/karma/ ftp://wuarchive.wustl.edu/graphics/graphics/packages/karma/ ftp://ftp.pwr.wroc.pl/pub/karma/ The Karma Home Page is: http://www.atnf.csiro.au/karma/