OpenGL::Sandbox::MMap - Wrapper around a memory-mapped scalar ref
version 0.02_01
my $mmap= OpenGL::Sandbox::MMap->new("Filename.ttf");
This is a simple wrapper around File::Map to make it more convenient to open read-only memory-mapped files, and to make sure they are distinctly held as references and not accidentally copied into perl scalars.
Number of bytes mapped from file. Same as length($$mmap)
length($$mmap)
my $mmap= OpenGL::Sandbox::MMap->new($filename);
Return a blessed reference to a scalar which points to memory-mapped data. $filename is always opened read-only.
$filename
Michael Conrad <mike@nrdvana.net>
This software is copyright (c) 2018 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install OpenGL::Sandbox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenGL::Sandbox
CPAN shell
perl -MCPAN -e shell install OpenGL::Sandbox
For more information on module installation, please visit the detailed CPAN module installation guide.