API for mmap
- ()
by Chris Houser
Usage:
(ns your-namespace
(:require clojure.contrib.mmap))
Overview
Functions for memory-mapping files, plus some functions that use a
mmaped file for "normal" activies -- slurp, load-file, etc.
Public Variables and Functions
buffer-stream
function
Usage: (buffer-stream buf)
Returns an InputStream for a ByteBuffer, such as returned by mmap.
Source
mmap
function
Usage: (mmap f)
Memory-map the file named f. Returns a ByteBuffer.
Source
slurp
function
Usage: (slurp f)
Reads the file named by f and returns it as a string.
Source