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
Afficher le fichier Open project: kjk/volante

Méthodes publiques

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

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Lock() public méthode

public Lock ( ) : void
Résultat void

Read() public méthode

public Read ( long pos, byte buf ) : int
pos long
buf byte
Résultat int

Sync() public méthode

public Sync ( ) : void
Résultat void

Write() public méthode

public Write ( long pos, byte buf ) : void
pos long
buf byte
Résultat void