Module luwak_io

Function Index

get_range/4Returns an iolist() for the starting offset and length specified.
put_range/4Put range performs a synchronous write operation on the given luwak file.
truncate/3Truncates a file to the specified offset.

Function Details

get_range/4

get_range(Riak::riak(), File::luwak_file(), Start::int(), Length::int()) -> iolist()

Returns an iolist() for the starting offset and length specified.

put_range/4

put_range(Riak::riak(), File::luwak_file(), Start::int(), Data::binary()) -> {ok, WrittenBlocks, NewFile}

Put range performs a synchronous write operation on the given luwak file. The write will start at the offset specified by Start and overwrite anything at that position with the contents of Data. Writes starting beyond the end of the file will occur at the end of the file. Luwak does not allow for gaps in a file.

truncate/3

truncate(Riak::riak(), File::luwak_file(), Start::int()) -> {ok, NewFile}

Truncates a file to the specified offset. All bytes beyond Start will no longer be readable in NewFile.


Generated by EDoc, May 31 2010, 11:13:39.