dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
buffer.h File Reference

Multipurpose byte buffer structure and methods. More...

Go to the source code of this file.

Classes

struct  struct_cBuffer
 cBuffer structure More...
 

Typedefs

typedef struct struct_cBuffer cBuffer
 cBuffer structure More...
 

Functions

void bufferInit (cBuffer *buffer, unsigned char *start, unsigned short size)
 initialize a buffer to start at a given address and have given size More...
 
unsigned char bufferGetFromFront (cBuffer *buffer)
 get the first byte from the front of the buffer More...
 
void bufferDumpFromFront (cBuffer *buffer, unsigned short numbytes)
 dump (discard) the first numbytes from the front of the buffer More...
 
unsigned char bufferGetAtIndex (cBuffer *buffer, unsigned short index)
 get a byte at the specified index in the buffer (kind of like array access) More...
 
unsigned char bufferAddToEnd (cBuffer *buffer, unsigned char data)
 add a byte to the end of the buffer More...
 
unsigned char bufferIsNotFull (cBuffer *buffer)
 check if the buffer is full/not full (returns non-zero value if not full) More...
 
void bufferFlush (cBuffer *buffer)
 flush (clear) the contents of the buffer More...
 

Detailed Description

Multipurpose byte buffer structure and methods.

Definition in file buffer.h.