NAME
OpenGL::Sandbox::MMap - Wrapper around a memory-mapped scalar ref
VERSION
version 0.120
SYNOPSIS
my $mmap= OpenGL::Sandbox::MMap->new("Filename.ttf");
DESCRIPTION
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.
ATTRIBUTES
size
Number of bytes mapped from file. Same as length($$mmap)
METHODS
new
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.
AUTHOR
Michael Conrad <mike@nrdvana.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019 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.