memmap

Last updated:

0 purchases

memmap Image
memmap Images
Add to Cart

Description:

memmap

A Linux memory mapped IO.
Features #

✅ file-backed memory maps
[] anonymous memory maps
[] synchronous and asynchronous flushing
[] copy-on-write memory maps
[] read-only memory maps
[] stack support (MAP_STACK on unix)
[] executable memory maps
❌ huge page support

Usage #
var dir = Directory.systemTemp.createTempSync('memmap_test');
var path = dir.path + '/memmap_test.dart';
var file = File(path)..writeAsStringSync('hey');

var mmap = Mmap(path);
var bytes = mmap.asBytes();

expect(bytes, equals(utf8.encode('hey')));

mmap.close();

file.deleteSync();
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.