Native

NAME

Mmap::Native - interface to posix mmap() and mmunmap() calls

SYNOPSIS


use Mmap::Native;

=begin comment
mmap my Str $foo, 0, PROT_READ, MAP_SHARED, FILEHANDLE;
my @tags = $foo =~ /<(.*?)>/g;
munmap $foo;
=end comment
 
my $f = $*CWD.add('META6.json'); $f = $f.open;
my $d = mmap Pointer, 50, PROT_READ, MAP_SHARED, $f.native-descriptor, 0;
my $e = blob-from-pointer $d, :50elems, :type(Buf[uint8]);

is $e.decode('utf8'), /'"auth": "zef:massa"'/;

DESCRIPTION

Mmap::Native is ...

AUTHOR

Humberto Massa <[email protected]>

COPYRIGHT AND LICENSE

Copyright 2024 Humberto Massa

This library is free software; you can redistribute it and/or modify it under either the Artistic License 2.0 or the LGPL v3.0, at your convenience.

Mmap::Native v0.0.1

interface to posix mmap() and mmunmap() calls

Authors

  • Humberto Massa

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Mmap::Native

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.