Added Stream_ConstPointer

This commit is contained in:
Armin Novak 2022-02-01 11:08:47 +01:00 committed by akallabeth
parent 10e40147fb
commit ccaf3c938c
1 changed files with 6 additions and 0 deletions

View File

@ -367,6 +367,12 @@ extern "C"
return _s->pointer;
}
static INLINE const BYTE* Stream_ConstPointer(const wStream* _s)
{
WINPR_ASSERT(_s);
return _s->pointer;
}
#define Stream_GetPointer(_s, _p) _p = Stream_Pointer(_s)
#if defined(WITH_WINPR_DEPRECATED)