A Clojure library designed to allow you to easily mmap files via Java's NIO, and to handle files larger than 2GB.
(with-open [mapped-file (clj-mmap/get-mmap "/tmp/big_file.txt")]
(let [some-bytes (clj-mmap/get-bytes mapped-file 0 30)]
(println (str "First 30 bytes of file, '" (String. some-bytes "UTF-8") "'"))))
Licensed under the MIT license.
Copyright (C) 2012-2013 Alan Busby
Can you improve this documentation? These fine people already did:
Alan Busby & Bobby RichterEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close