Leptonica  1.82.0
Image processing and image analysis suite
bbuffer.h File Reference

Go to the source code of this file.

Data Structures

struct  L_ByteBuffer
 

Typedefs

typedef struct L_ByteBuffer L_BBUFFER
 

Detailed Description

     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.