MapViewOfFile method

Pointer<Void> MapViewOfFile(
  1. Pointer<Void> hFileMappingObject,
  2. int dwDesiredAccess,
  3. int dwFileOffsetHigh,
  4. int dwFileOffsetLow,
  5. int dwNumberOfBytesToMap,
)

Implementation

ffi.Pointer<ffi.Void> MapViewOfFile(
  ffi.Pointer<ffi.Void> hFileMappingObject,
  int dwDesiredAccess,
  int dwFileOffsetHigh,
  int dwFileOffsetLow,
  int dwNumberOfBytesToMap,
) {
  return (_MapViewOfFile ??=
      _dylib.lookupFunction<_c_MapViewOfFile, _dart_MapViewOfFile>(
          'MapViewOfFile'))(
    hFileMappingObject,
    dwDesiredAccess,
    dwFileOffsetHigh,
    dwFileOffsetLow,
    dwNumberOfBytesToMap,
  );
}