C# Класс 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.
Наследование: IFile
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void
Lock ( ) : void
Read ( long pos, byte buf ) : int
Sync ( ) : void
Write ( long pos, byte buf ) : void

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

Lock() публичный Метод

public Lock ( ) : void
Результат void

Read() публичный Метод

public Read ( long pos, byte buf ) : int
pos long
buf byte
Результат int

Sync() публичный Метод

public Sync ( ) : void
Результат void

Write() публичный Метод

public Write ( long pos, byte buf ) : void
pos long
buf byte
Результат void