Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0ef891dbd
Fetching contributors…

Cannot retrieve contributors at this time

file 126 lines (45 sloc) 2.498 kb

Module emmap

Data Types

mmap_file() = #file_descriptor{}

open_option() = read | write | direct | lock | nolock | private | shared | nocache

Function Index

close/1
open/2
open/4
position/2
pread/3
pwrite/3
read/2
simple_test/0

Function Details

close/1

close(File::mmap_file()) -> ok


open/2

open(FileName, Options) -> any()

open/4

open(File::string(), Offset::pos_integer(), Length::pos_integer(), Options::[open_option()]) -> {ok, mmap_file()} | {error, term()}


position/2

position(File::mmap_file(), Position::pos_integer() | {bof | cur | eof, Position::integer()}) -> {ok, pos_integer()} | {error, term()}


pread/3

pread(File::mmap_file(), Offset::pos_integer(), Length::pos_integer()) -> {ok, binary()} | {error, term()} | eof


pwrite/3

pwrite(File::mmap_file(), Position::pos_integer(), Data::binary()) -> ok | {error, term()}


read/2

read(File::mmap_file(), Length::pos_integer()) -> {ok, binary()} | {error, term()} | eof


simple_test/0

simple_test() -> any()

Something went wrong with that request. Please try again.