BufferedFiles Documentation

BufferedFiles

BufferedFiles.BufferedFilesModule
BufferedFiles

Implementations of a better Filehandles.

Includes a Read-Only Filehandle, a better Write-Only Filehandle as well as Mmap-Filehandles (currently only on Unix) allowing both Reading and writing (but not appending (yet)).

Main Functions: bufferedopen and @om_str

source
BufferedFiles.BufferedFileType
abstract type BufferedFile <: IO end

Abstract Type for my Filehandles, to overwrite some of Julias functions from io.jl that cause allocations.

source
BufferedFiles.BufferedOpenModeMethod
BufferedOpenMode(pattern::AbstractString)

Convert pattern into its corresponding subtype of BufferedOpenMode.

Recommended Usage of this is with the @om_str macro at parse-time.

source
BufferedFiles.bufferedopenMethod
bufferedopen(file::AbstractString, openmode::AbstractString, args...)

Open a File.

Which type of Filehandle is returned depends on openmode.

source
BufferedFiles.bufferedopenMethod
bufferedopen(file::AbstractString, om"mr+", fs::Integer)

Open a file via Mmap in Read-Write Mode.

The file will be truncated to fs Byte before opening it via Mmap.

Appending is currently not possible and will throw an EOFError.

source
BufferedFiles.bufferedopenMethod
bufferedopen(file::AbstractString, om"mr+")

Open a file via Mmap in Read-Write Mode.

Appending is currently not possible and will throw an EOFError.

source

Libc

BufferedFiles.LibcModule
Libc

Interface for all the C-Calls and Constants used.

If a C-Function returns an error-code, Base.systemerror is used to confirm the return code, so the User does not need to do any error-checking themselfs.

source