Generated from buffer.c with ROBODoc v3.2.3 on Fri Aug 02 11:27:57 2002

TABLE OF CONTENTS

  1. lib5250/tn5250_buffer_init
  2. lib5250/tn5250_buffer_free
  3. lib5250/tn5250_buffer_append_byte
  4. lib5250/tn5250_buffer_append_data
  5. lib5250/tn5250_buffer_log

lib5250/tn5250_buffer_init

NAME
    tn5250_buffer_init
SYNOPSIS
    tn5250_buffer_init (&buf);
INPUTS
    Tn5250Buffer *      buf       - Pointer to a Tn5250Buffer object.
DESCRIPTION
    Zeros internal members.

lib5250/tn5250_buffer_free

NAME
    tn5250_buffer_free
SYNOPSIS
    tn5250_buffer_free (&buf);
INPUTS
    Tn5250Buffer *      buf      - Pointer to a buffer object.
DESCRIPTION
    Frees variable-length data and zeros internal members.

lib5250/tn5250_buffer_append_byte

NAME
    tn5250_buffer_append_byte
SYNOPSIS
    tn5250_buffer_append_byte (&buf, byte);
INPUTS
    Tn5250Buffer *      buf      - Pointer to a buffer object.
    unsigned char byte   - The byte to append.
DESCRIPTION
    Appends a single byte to the end of the variable-length data
    and reallocates the buffer if necessary to accomodate the new
    byte.

lib5250/tn5250_buffer_append_data

NAME
    tn5250_buffer_append_data
SYNOPSIS
    tn5250_buffer_append_data (&buf, data, len);
INPUTS
    Tn5250Buffer *      buf         - Pointer to a buffer object.
    unsigned char *     data        - Data to append.
    int         len         - Length of data to append.
DESCRIPTION
    Appends a variable number of bytes to the end of the variable-length
    data and reallocates the buffer if necessary to accomodate the new
    data.

lib5250/tn5250_buffer_log

NAME
    tn5250_buffer_log
SYNOPSIS
    tn5250_buffer_log (&buf,"> ");
INPUTS
    Tn5250Buffer *      buf         - Pointer to a buffer object.
    const char *        prefix      - Character string to prefix dump lines
                                    with in log.
DESCRIPTION
    Dumps the contents of the buffer to the 5250 logfile, if one is
    currently open.