FreeRDP/winpr/libwinpr/utils/test/TestBipBuffer.c

23 lines
346 B
C
Raw Normal View History

#include <winpr/crt.h>
#include <winpr/collections.h>
int TestBipBuffer(int argc, char* argv[])
{
BYTE* data;
wBipBuffer* bb;
bb = BipBuffer_New(1024);
if (!bb)
return -1;
2015-03-14 01:37:48 +03:00
data = BipBuffer_WriteReserve(bb, 1024 * 2);
fprintf(stderr, "BipBuffer_BufferSize: %"PRIuz"\n", BipBuffer_BufferSize(bb));
BipBuffer_Free(bb);
return 0;
}