mmap function

Mmap? mmap({
  1. int? address,
  2. required int length,
  3. int prot = 0,
  4. int flags = 0,
  5. required int fd,
  6. int offset = 0,
})

Implementation

Mmap? mmap({
  int? address,
  required int length,
  int prot = 0, // PROT_NONE
  int flags = 0,
  required int fd,
  int offset = 0,
}) {
  return platform.mmap(address ?? 0, length, prot, flags, fd, offset);
}