FreeRDP
|
#include <winpr/config.h>
#include <winpr/assert.h>
#include <winpr/crt.h>
#include <winpr/stream.h>
#include "stream.h"
#include "../log.h"
Macros | |
#define | STREAM_TAG WINPR_TAG("wStream") |
#define | STREAM_ASSERT(cond) |
Functions | |
BOOL | Stream_EnsureCapacity (wStream *s, size_t size) |
BOOL | Stream_EnsureRemainingCapacity (wStream *s, size_t size) |
wStream * | Stream_New (BYTE *buffer, size_t size) |
wStream * | Stream_StaticConstInit (wStream *s, const BYTE *buffer, size_t size) |
wStream * | Stream_StaticInit (wStream *s, BYTE *buffer, size_t size) |
void | Stream_EnsureValidity (wStream *s) |
void | Stream_Free (wStream *s, BOOL bFreeBuffer) |
BOOL | Stream_SetLength (wStream *_s, size_t _l) |
BOOL | Stream_SetPosition (wStream *_s, size_t _p) |
void | Stream_SealLength (wStream *_s) |
size_t | Stream_GetRemainingCapacity (const wStream *_s) |
size_t | Stream_GetRemainingLength (const wStream *_s) |
BOOL | Stream_Write_UTF16_String (wStream *s, const WCHAR *src, size_t length) |
BOOL | Stream_Read_UTF16_String (wStream *s, WCHAR *dst, size_t length) |
BOOL | Stream_CheckAndLogRequiredLengthEx (const char *tag, DWORD level, wStream *s, UINT64 len, const char *fmt,...) |
BOOL | Stream_CheckAndLogRequiredLengthExVa (const char *tag, DWORD level, wStream *s, UINT64 len, const char *fmt, va_list args) |
BOOL | Stream_CheckAndLogRequiredLengthWLogEx (wLog *log, DWORD level, wStream *s, UINT64 len, const char *fmt,...) |
BOOL | Stream_CheckAndLogRequiredLengthWLogExVa (wLog *log, DWORD level, wStream *s, UINT64 len, const char *fmt, va_list args) |
#define STREAM_ASSERT | ( | cond | ) |
#define STREAM_TAG WINPR_TAG("wStream") |
BOOL Stream_CheckAndLogRequiredLengthEx | ( | const char * | tag, |
DWORD | level, | ||
wStream * | s, | ||
UINT64 | len, | ||
const char * | fmt, | ||
... | |||
) |
BOOL Stream_CheckAndLogRequiredLengthExVa | ( | const char * | tag, |
DWORD | level, | ||
wStream * | s, | ||
UINT64 | len, | ||
const char * | fmt, | ||
va_list | args | ||
) |
BOOL Stream_CheckAndLogRequiredLengthWLogEx | ( | wLog * | log, |
DWORD | level, | ||
wStream * | s, | ||
UINT64 | len, | ||
const char * | fmt, | ||
... | |||
) |
BOOL Stream_CheckAndLogRequiredLengthWLogExVa | ( | wLog * | log, |
DWORD | level, | ||
wStream * | s, | ||
UINT64 | len, | ||
const char * | fmt, | ||
va_list | args | ||
) |
BOOL Stream_EnsureCapacity | ( | wStream * | s, |
size_t | size | ||
) |
BOOL Stream_EnsureRemainingCapacity | ( | wStream * | s, |
size_t | size | ||
) |
void Stream_EnsureValidity | ( | wStream * | s | ) |
void Stream_Free | ( | wStream * | s, |
BOOL | bFreeBuffer | ||
) |
size_t Stream_GetRemainingCapacity | ( | const wStream * | _s | ) |
size_t Stream_GetRemainingLength | ( | const wStream * | _s | ) |
BOOL Stream_Read_UTF16_String | ( | wStream * | s, |
WCHAR * | dst, | ||
size_t | length | ||
) |
void Stream_SealLength | ( | wStream * | _s | ) |
BOOL Stream_SetLength | ( | wStream * | _s, |
size_t | _l | ||
) |
BOOL Stream_SetPosition | ( | wStream * | _s, |
size_t | _p | ||
) |
BOOL Stream_Write_UTF16_String | ( | wStream * | s, |
const WCHAR * | src, | ||
size_t | length | ||
) |