I/O Buffer functions


Functions

IOBufaws_iobuf_new ()
 Create a new I/O buffer.
void aws_iobuf_append (IOBuf *B, char *d, int len)
 Append data to I/O buffer.
int aws_iobuf_getline (IOBuf *B, char *Line, int size)
 Read the next line from the buffer.
void aws_iobuf_free (IOBuf *bf)
 Release IO Buffer.

Function Documentation

void aws_iobuf_append ( IOBuf B,
char *  d,
int  len 
)

Append data to I/O buffer.

Parameters:
B I/O buffer
d pointer to the data to be appended
len length of the data to be appended

Definition at line 1114 of file aws4c.c.

References IOBufNode::buf, current, first, len, IOBufNode::next, and pos.

Referenced by main(), sqs_get_message(), sqs_list_queues(), and writefunc().

void aws_iobuf_free ( IOBuf bf  ) 

Release IO Buffer.

Parameters:
bf I/O buffer to be deleted

Release Things

Walk down the list and release blocks

Definition at line 1173 of file aws4c.c.

References eTag, first, lastMod, IOBufNode::next, and result.

Referenced by main(), sqs_get_message(), and sqs_list_queues().

int aws_iobuf_getline ( IOBuf B,
char *  Line,
int  size 
)

Read the next line from the buffer.

Parameters:
B I/O buffer
Line character array to store the read line in
size size of the character array Line
Returns:
number of characters read or 0

Definition at line 1144 of file aws4c.c.

References IOBufNode::buf, current, len, IOBufNode::next, and pos.

Referenced by DumpResult(), main(), readfunc(), sqs_get_message(), sqs_get_queueattributes(), and sqs_list_queues().

IOBuf* aws_iobuf_new (  ) 

Create a new I/O buffer.

\return a newly allocated I/O buffer

Definition at line 1092 of file aws4c.c.

References code, current, eTag, first, lastMod, len, pos, and result.

Referenced by main(), sqs_get_message(), and sqs_list_queues().


Generated by Doxygen