GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - js/simple-mmap: A simplistic ruby interface for reading memory mapped files

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
ext
ext
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
History.txt
History.txt
 
 
Manifest.txt
Manifest.txt
 
 
README.txt
README.txt
 
 
Rakefile
Rakefile
 
 

Repository files navigation

= simple_mmap

http://simple-mmap.rubyforge.org/

== DESCRIPTION:

  A simplistic interface for reading memory mapped files

== FEATURES/PROBLEMS:

* mmap a file. Read data from it. Close it when you're done. More fun than the "ball in a cup" game.
* it ONLY supports reading mmap'ed files, not writing to the mmap'ed region

== SYNOPSIS:
  
>> fw = SimpleMmap::FileWindow.open("path/to/large/file")
>> fw[23467, 200] #=> data between byte 23467 and the next 200 bytes
# works with the same semantics as Array#[] (eg. fw[10..14] and fw[10...14])
>> fw.close # you MUST close the FileWindow after you're done (HAHA no blocks for you yet!)


== REQUIREMENTS:

* A mmap() capable platform.

== INSTALL:

$ gem install simple_mmap
# If you have ruby 1.9+ built with executables having a program-suffix:
$ env rake=rake1.9 gem install simple_mmap

== LICENSE:

(The MIT License)

Copyright (c) 2009 Johan Sørensen

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A simplistic ruby interface for reading memory mapped files

gitorious.org/projects/simple-mmap/

Resources

Readme
Activity

Stars

6 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.