class MemoryMappedFileD extends AnyRef
The MemoryMappedFileD
class provides support for memory-mapped files.
This version works for Double
- Alphabetic
- By Inheritance
- MemoryMappedFileD
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MemoryMappedFileD(fname: String, sz: Int = 1024)
- fname
the file name
- sz
the size of the memory mapped file
Value Members
-
def
close(): Unit
Close the memory mapped file.
-
def
get(index: Int): Double
Get the bytes in the file starting at 'index'.
Get the bytes in the file starting at 'index'.
- index
the index position in the file
-
def
put(index: Int, x: Double): ByteBuffer
Put the bytes in the file starting at 'index'.
Put the bytes in the file starting at 'index'.
- index
the index position in the file
- x
the double value to put
-
def
size: Int
Return the size of the memory mapped file.