1.2.0 permalink Arrow_down_16x16
  • (mmap f)
Memory-map the file named f. Returns a ByteBuffer.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/mmap.clj:27 top

(defn mmap
  "Memory-map the file named f.  Returns a ByteBuffer."
  [f]
  (let [channel (.getChannel (FileInputStream. f))]
    (.map channel READ_ONLY 0 (.size channel))))
Vars in clojure.contrib.mmap/mmap: defn let
Used in 0 other vars

Comments top

No comments for mmap. Log in to add a comment.