WideCharToMultiByte method

int WideCharToMultiByte(
  1. int CodePage,
  2. int dwFlags,
  3. Pointer<Uint16> lpWideCharStr,
  4. int cchWideChar,
  5. Pointer<Int8> lpMultiByteStr,
  6. int cbMultiByte,
  7. Pointer<Int8> lpDefaultChar,
  8. Pointer<Int32> lpUsedDefaultChar,
)

Implementation

int WideCharToMultiByte(
  int CodePage,
  int dwFlags,
  ffi.Pointer<ffi.Uint16> lpWideCharStr,
  int cchWideChar,
  ffi.Pointer<ffi.Int8> lpMultiByteStr,
  int cbMultiByte,
  ffi.Pointer<ffi.Int8> lpDefaultChar,
  ffi.Pointer<ffi.Int32> lpUsedDefaultChar,
) {
  return (_WideCharToMultiByte ??= _dylib.lookupFunction<
      _c_WideCharToMultiByte,
      _dart_WideCharToMultiByte>('WideCharToMultiByte'))(
    CodePage,
    dwFlags,
    lpWideCharStr,
    cchWideChar,
    lpMultiByteStr,
    cbMultiByte,
    lpDefaultChar,
    lpUsedDefaultChar,
  );
}