-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate low-level and high-level mmap wrappers to separate functions
This cleans up the method list for the intended user-facing `mmap` function just a little bit --- namely, the function signature involving a `RawFD` argument is no longer shown. Simultaneously, we slightly relax the type constraints on all of the high-level `mmap` methods to accept any `<:Array{T}` type so that both specific-shape arrays (i.e. `Vector{T}`, `Matrix{T}`) and the generic `Array{T}` argument can be used in user code to do the same thing. (Only the number of dimensions arguments matters in the end, so the confusing `UnixMmap.mmap(Vector{Float64}, (3, 64))` actually returns a matrix, but I find that less objectionable than not permitting `UnixMmap.mmap(Matrix{Float64}, (3, 64))` to even work.)
- Loading branch information
Showing
4 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters