WindowsGetStringRawBuffer function winrt
Retrieves the backing buffer for the specified string.
To learn more, see learn.microsoft.com/windows/win32/api/winstring/nf-winstring-windowsgetstringrawbuffer.
Implementation
@pragma('vm:prefer-inline')
PCWSTR WindowsGetStringRawBuffer(HSTRING? string, Pointer<Uint32>? length) =>
PCWSTR(_WindowsGetStringRawBuffer(string ?? nullptr, length ?? nullptr));