cdds_write - write DDS binary data

SYNOPSIS

#include "cdds.h"

int cdds_write(bin, tag, buf, count);

BIN_TAG bin
FIELD_TAG tag
const void *buf
int count

DESCRIPTION

This function writes data into a binary stream, from a buffer.

INPUT

Bin is a binary tag, previously obtained from cdds_open. It specifies a particular binary stream.

tag is a field tag, previously obtained eg. from cdds_member. It specifies a tag associated with bin. This provides a scale factor for count. If tag is zero (nominal), it defaults to the SEQUENCE (trace type) associated with bin.

Data is written from buf. The minimum size is count times the size of tag.

OUTPUT

A byte sequence from the buffer is copied into the stream; no conversions are performed.

The return value is the number of types actually written, or EOF if an error occurred before any transfer.

EXAMPLES

          
            BIN_TAG out_bin;
            char *buf;
            ...
            /* write 10 traces into type buffer */
            cdds_write(out_bin, 0, buf, 10);
          

SEE ALSO

      cdds_writem Write binary stream & map buffer
    

AUTHOR

R. L. Selzler, EPTG (Oct 1995)