Packages

c

scalation.util

MemoryMappedFileD

class MemoryMappedFileD extends AnyRef

The MemoryMappedFileD class provides support for memory-mapped files. This version works for Double

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MemoryMappedFileD
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MemoryMappedFileD(fname: String, sz: Int = 1024)

    fname

    the file name

    sz

    the size of the memory mapped file

Value Members

  1. def close(): Unit

    Close the memory mapped file.

  2. 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

  3. 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

  4. def size: Int

    Return the size of the memory mapped file.