WindowsGetStringRawBuffer function Null safety winrt

Pointer<Utf16> WindowsGetStringRawBuffer (
  1. int string,
  2. Pointer<Uint32> length
)

Retrieves the backing buffer for the specified string.

PCWSTR WindowsGetStringRawBuffer(
  HSTRING string,
  UINT32  *length
);

Implementation

Pointer<Utf16> WindowsGetStringRawBuffer(int string, Pointer<Uint32> length) {
  final _WindowsGetStringRawBuffer =
      _api_ms_win_core_winrt_string_l1_1_0.lookupFunction<
          Pointer<Utf16> Function(IntPtr string, Pointer<Uint32> length),
          Pointer<Utf16> Function(
              int string, Pointer<Uint32> length)>('WindowsGetStringRawBuffer');
  return _WindowsGetStringRawBuffer(string, length);
}