WindowsGetStringRawBuffer function winrt

PCWSTR WindowsGetStringRawBuffer(
  1. HSTRING? string,
  2. Pointer<Uint32>? length
)

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));