Leptonica 1.68
C Image Processing Library

bbuffer.h File Reference

Struct for expandable byte buffer (see bbuffer.c) More...

Go to the source code of this file.

Data Structures

struct  ByteBuffer

Typedefs

typedef struct ByteBuffer BBUFFER

Detailed Description

Struct for expandable byte buffer (see bbuffer.c)

    Expandable byte buffer for reading data in from memory and
    writing data out to other memory.

    This implements a queue of bytes, so data read in is put
    on the "back" of the queue (i.e., the end of the byte array)
    and data written out is taken from the "front" of the queue
    (i.e., from an index marker "nwritten" that is initially set at
    the beginning of the array.)  As usual with expandable
    arrays, we keep the size of the allocated array and the
    number of bytes that have been read into the array.

    For implementation details, see bbuffer.c.

Definition in file bbuffer.h.


Typedef Documentation

typedef struct ByteBuffer BBUFFER

Definition at line 43 of file bbuffer.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines