|
#define | WINPR_STREAM_CAST(t, val) (t)(val) |
|
#define | Stream_CheckAndLogRequiredCapacityOfSize(tag, s, nmemb, size) |
|
#define | Stream_CheckAndLogRequiredCapacity(tag, s, len) Stream_CheckAndLogRequiredCapacityOfSize((tag), (s), (len), 1) |
|
#define | Stream_CheckAndLogRequiredCapacityOfSizeWLog(log, s, nmemb, size) |
|
#define | Stream_CheckAndLogRequiredCapacityWLog(log, s, len) Stream_CheckAndLogRequiredCapacityOfSizeWLog((log), (s), (len), 1) |
|
#define | Stream_CheckAndLogRequiredLengthOfSize(tag, s, nmemb, size) |
|
#define | Stream_CheckAndLogRequiredLength(tag, s, len) Stream_CheckAndLogRequiredLengthOfSize(tag, s, len, 1) |
|
#define | Stream_CheckAndLogRequiredLengthOfSizeWLog(log, s, nmemb, size) |
|
#define | Stream_CheckAndLogRequiredLengthWLog(log, s, len) Stream_CheckAndLogRequiredLengthOfSizeWLog(log, s, len, 1) |
|
#define | Stream_Read_UINT8(_s, _v) |
|
#define | Stream_Read_INT8(_s, _v) |
|
#define | Stream_Read_UINT16(_s, _v) |
|
#define | Stream_Read_INT16(_s, _v) |
|
#define | Stream_Read_UINT16_BE(_s, _v) |
|
#define | Stream_Read_INT16_BE(_s, _v) |
|
#define | Stream_Read_UINT32(_s, _v) |
|
#define | Stream_Read_INT32(_s, _v) |
|
#define | Stream_Read_UINT32_BE(_s, _v) |
|
#define | Stream_Read_INT32_BE(_s, _v) |
|
#define | Stream_Read_UINT64(_s, _v) |
|
#define | Stream_Read_INT64(_s, _v) |
|
#define | Stream_Read_UINT64_BE(_s, _v) |
|
#define | Stream_Read_INT64_BE(_s, _v) |
|
#define | Stream_Peek_UINT8(_s, _v) |
|
#define | Stream_Peek_INT8(_s, _v) |
|
#define | Stream_Peek_UINT16(_s, _v) |
|
#define | Stream_Peek_INT16(_s, _v) |
|
#define | Stream_Peek_UINT16_BE(_s, _v) |
|
#define | Stream_Peek_INT16_BE(_s, _v) |
|
#define | Stream_Peek_UINT32(_s, _v) |
|
#define | Stream_Peek_INT32(_s, _v) |
|
#define | Stream_Peek_UINT32_BE(_s, _v) |
|
#define | Stream_Peek_INT32_BE(_s, _v) |
|
#define | Stream_Peek_UINT64(_s, _v) |
|
#define | Stream_Peek_INT64(_s, _v) |
|
#define | Stream_Peek_UINT64_BE(_s, _v) |
|
#define | Stream_Peek_INT64_BE(_s, _v) |
|
#define | Stream_GetBuffer(_s, _b) _b = Stream_Buffer(_s) |
|
#define | Stream_PointerAs(s, type) (type*)Stream_Pointer(s) |
|
#define | Stream_GetPointer(_s, _p) _p = Stream_Pointer(_s) |
|
#define | Stream_GetLength(_s, _l) _l = Stream_Length(_s) |
|
#define | Stream_GetCapacity(_s, _c) _c = Stream_Capacity(_s); |
|
#define | Stream_SafeSeek(s, size) Stream_SafeSeekEx(s, size, __FILE__, __LINE__, __func__) |
|
|
static INLINE size_t | Stream_Capacity (const wStream *_s) |
|
WINPR_API size_t | Stream_GetRemainingCapacity (const wStream *_s) |
|
WINPR_API size_t | Stream_GetRemainingLength (const wStream *_s) |
|
WINPR_API BOOL | Stream_EnsureCapacity (wStream *s, size_t size) |
|
WINPR_API BOOL | Stream_EnsureRemainingCapacity (wStream *s, size_t size) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredCapacityEx (const char *tag, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt,...) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredCapacityExVa (const char *tag, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt, va_list args) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredCapacityWLogEx (wLog *log, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt,...) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredCapacityWLogExVa (wLog *log, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt, va_list args) |
|
WINPR_API void | Stream_Free (wStream *s, BOOL bFreeBuffer) |
|
WINPR_API wStream * | Stream_New (BYTE *buffer, size_t size) |
|
WINPR_API wStream * | Stream_StaticConstInit (wStream *s, const BYTE *buffer, size_t size) |
|
WINPR_API wStream * | Stream_StaticInit (wStream *s, BYTE *buffer, size_t size) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredLengthEx (const char *tag, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt,...) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredLengthExVa (const char *tag, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt, va_list args) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredLengthWLogEx (wLog *log, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt,...) |
|
WINPR_API BOOL | Stream_CheckAndLogRequiredLengthWLogExVa (wLog *log, DWORD level, wStream *s, size_t nmemb, size_t size, const char *fmt, va_list args) |
|
static INLINE void | Stream_Seek (wStream *s, size_t _offset) |
|
static INLINE void | Stream_Rewind (wStream *s, size_t _offset) |
|
static INLINE UINT8 | stream_read_u8 (wStream *_s, BOOL seek) |
|
static INLINE INT8 | stream_read_i8 (wStream *_s, BOOL seek) |
|
static INLINE UINT16 | stream_read_u16_le (wStream *_s, BOOL seek) |
|
static INLINE UINT16 | stream_read_u16_be (wStream *_s, BOOL seek) |
|
static INLINE INT16 | stream_read_i16_le (wStream *_s, BOOL seek) |
|
static INLINE INT16 | stream_read_i16_be (wStream *_s, BOOL seek) |
|
static INLINE UINT32 | stream_read_u32_le (wStream *_s, BOOL seek) |
|
static INLINE UINT32 | stream_read_u32_be (wStream *_s, BOOL seek) |
|
static INLINE INT32 | stream_read_i32_le (wStream *_s, BOOL seek) |
|
static INLINE INT32 | stream_read_i32_be (wStream *_s, BOOL seek) |
|
static INLINE UINT64 | stream_read_u64_le (wStream *_s, BOOL seek) |
|
static INLINE UINT64 | stream_read_u64_be (wStream *_s, BOOL seek) |
|
static INLINE INT64 | stream_read_i64_le (wStream *_s, BOOL seek) |
|
static INLINE INT64 | stream_read_i64_be (wStream *_s, BOOL seek) |
|
static INLINE UINT8 | Stream_Get_UINT8 (wStream *_s) |
|
static INLINE INT8 | Stream_Get_INT8 (wStream *_s) |
|
static INLINE UINT16 | Stream_Get_UINT16 (wStream *_s) |
|
static INLINE INT16 | Stream_Get_INT16 (wStream *_s) |
|
static INLINE UINT16 | Stream_Get_UINT16_BE (wStream *_s) |
|
static INLINE INT16 | Stream_Get_INT16_BE (wStream *_s) |
|
static INLINE UINT32 | Stream_Get_UINT32 (wStream *_s) |
|
static INLINE INT32 | Stream_Get_INT32 (wStream *_s) |
|
static INLINE UINT32 | Stream_Get_UINT32_BE (wStream *_s) |
|
static INLINE INT32 | Stream_Get_INT32_BE (wStream *_s) |
|
static INLINE UINT64 | Stream_Get_UINT64 (wStream *_s) |
|
static INLINE INT64 | Stream_Get_INT64 (wStream *_s) |
|
static INLINE UINT64 | Stream_Get_UINT64_BE (wStream *_s) |
|
static INLINE INT64 | Stream_Get_INT64_BE (wStream *_s) |
|
static INLINE UINT8 | Stream_Peek_Get_UINT8 (wStream *_s) |
|
static INLINE INT8 | Stream_Peek_Get_INT8 (wStream *_s) |
|
static INLINE UINT16 | Stream_Peek_Get_UINT16 (wStream *_s) |
|
static INLINE INT16 | Stream_Peek_Get_INT16 (wStream *_s) |
|
static INLINE UINT16 | Stream_Peek_Get_UINT16_BE (wStream *_s) |
|
static INLINE INT16 | Stream_Peek_Get_INT16_BE (wStream *_s) |
|
static INLINE UINT32 | Stream_Peek_Get_UINT32 (wStream *_s) |
|
static INLINE INT32 | Stream_Peek_Get_INT32 (wStream *_s) |
|
static INLINE UINT32 | Stream_Peek_Get_UINT32_BE (wStream *_s) |
|
static INLINE INT32 | Stream_Peek_Get_INT32_BE (wStream *_s) |
|
static INLINE UINT64 | Stream_Peek_Get_UINT64 (wStream *_s) |
|
static INLINE INT64 | Stream_Peek_Get_INT64 (wStream *_s) |
|
static INLINE UINT64 | Stream_Peek_Get_UINT64_BE (wStream *_s) |
|
static INLINE INT64 | Stream_Peek_Get_INT64_BE (wStream *_s) |
|
static INLINE void | Stream_Read (wStream *_s, void *_b, size_t _n) |
|
static INLINE void | Stream_Peek (const wStream *_s, void *_b, size_t _n) |
|
static INLINE void | Stream_Write_UINT8 (wStream *_s, UINT8 _v) |
|
static INLINE void | Stream_Write_INT16 (wStream *_s, INT16 _v) |
|
static INLINE void | Stream_Write_UINT16 (wStream *_s, UINT16 _v) |
|
static INLINE void | Stream_Write_UINT16_BE (wStream *_s, UINT16 _v) |
|
static INLINE void | Stream_Write_UINT24_BE (wStream *_s, UINT32 _v) |
|
static INLINE void | Stream_Write_INT32 (wStream *_s, INT32 _v) |
|
static INLINE void | Stream_Write_UINT32 (wStream *_s, UINT32 _v) |
|
static INLINE void | Stream_Write_UINT32_BE (wStream *_s, UINT32 _v) |
|
static INLINE void | Stream_Write_UINT64 (wStream *_s, UINT64 _v) |
|
static INLINE void | Stream_Write (wStream *_s, const void *_b, size_t _n) |
|
static INLINE void | Stream_Seek_UINT8 (wStream *_s) |
|
static INLINE void | Stream_Seek_UINT16 (wStream *_s) |
|
static INLINE void | Stream_Seek_UINT32 (wStream *_s) |
|
static INLINE void | Stream_Seek_UINT64 (wStream *_s) |
|
static INLINE void | Stream_Rewind_UINT8 (wStream *_s) |
|
static INLINE void | Stream_Rewind_UINT16 (wStream *_s) |
|
static INLINE void | Stream_Rewind_UINT32 (wStream *_s) |
|
static INLINE void | Stream_Rewind_UINT64 (wStream *_s) |
|
static INLINE void | Stream_Zero (wStream *_s, size_t _n) |
|
static INLINE void | Stream_Fill (wStream *_s, int _v, size_t _n) |
|
static INLINE void | Stream_Copy (wStream *_src, wStream *_dst, size_t _n) |
|
static INLINE BYTE * | Stream_Buffer (wStream *_s) |
|
static INLINE const BYTE * | Stream_ConstBuffer (const wStream *_s) |
|
static INLINE void * | Stream_Pointer (wStream *_s) |
|
static INLINE const void * | Stream_ConstPointer (const wStream *_s) |
|
static INLINE size_t | Stream_Length (const wStream *_s) |
|
WINPR_API BOOL | Stream_SetLength (wStream *_s, size_t _l) |
|
static INLINE size_t | Stream_GetPosition (const wStream *_s) |
|
WINPR_API BOOL | Stream_SetPosition (wStream *_s, size_t _p) |
|
WINPR_API void | Stream_SealLength (wStream *_s) |
|
static INLINE void | Stream_Clear (wStream *_s) |
|
WINPR_API BOOL | Stream_SafeSeekEx (wStream *s, size_t size, const char *file, size_t line, const char *fkt) |
|
WINPR_API BOOL | Stream_Read_UTF16_String (wStream *s, WCHAR *dst, size_t charLength) |
|
WINPR_API BOOL | Stream_Write_UTF16_String (wStream *s, const WCHAR *src, size_t charLength) |
|
WINPR_API char * | Stream_Read_UTF16_String_As_UTF8 (wStream *s, size_t wcharLength, size_t *pUtfCharLength) |
| Reads a WCHAR string from a stream and converts it to UTF-8 and returns a newly allocated string. More...
|
|
WINPR_API SSIZE_T | Stream_Read_UTF16_String_As_UTF8_Buffer (wStream *s, size_t wcharLength, char *utfBuffer, size_t utfBufferCharLength) |
| Reads a WCHAR string from a stream and converts it to UTF-8 and writes it to the supplied buffer. More...
|
|
WINPR_API SSIZE_T | Stream_Write_UTF16_String_From_UTF8 (wStream *s, size_t wcharLength, const char *src, size_t length, BOOL fill) |
| Writes a UTF-8 string UTF16 encoded to the stream. If the UTF-8 string is short, the remainig characters are filled up with '\0'. More...
|
|
WINPR_API void | StreamPool_Return (wStreamPool *pool, wStream *s) |
|
WINPR_API wStream * | StreamPool_Take (wStreamPool *pool, size_t size) |
|
WINPR_API void | Stream_AddRef (wStream *s) |
|
WINPR_API void | Stream_Release (wStream *s) |
|
WINPR_API wStream * | StreamPool_Find (wStreamPool *pool, BYTE *ptr) |
|
WINPR_API void | StreamPool_Clear (wStreamPool *pool) |
|
WINPR_API void | StreamPool_Free (wStreamPool *pool) |
|
WINPR_API wStreamPool * | StreamPool_New (BOOL synchronized, size_t defaultSize) |
|
WINPR_API char * | StreamPool_GetStatistics (wStreamPool *pool, char *buffer, size_t size) |
|