C# Class Volante.NullFile

This implementation of IFile interface can be used to make Volante as an main-memory database. It should be used when cacheSizeInBytes is set to 0. In this case all pages are cached in memory and NullFile is used just as a stub. NullFile should be used only when data is transient i.e. it will not be saved between database sessions. If you need an in-memory database that provides data persistency, you should use normal file and infinite page pool size.
Inheritance: IFile
Mostrar archivo Open project: kjk/volante

Public Methods

Method Description
Close ( ) : void
Lock ( ) : void
Read ( long pos, byte buf ) : int
Sync ( ) : void
Write ( long pos, byte buf ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Lock() public method

public Lock ( ) : void
return void

Read() public method

public Read ( long pos, byte buf ) : int
pos long
buf byte
return int

Sync() public method

public Sync ( ) : void
return void

Write() public method

public Write ( long pos, byte buf ) : void
pos long
buf byte
return void