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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |