C# Класс Volante.StreamFile

IFile implementation which to store databases on System.IO.Stream instances.
Наследование: IFile
Показать файл Открыть проект

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

Метод Описание
Close ( ) : void

Closes the stream (subject to the NoFlush property)

Lock ( ) : void

Locks the stream (no-op)

Read ( long pos, byte buf ) : int

Read method

StreamFile ( System stream )

Construction

StreamFile ( System stream, long offset )

Construction

Sync ( ) : void

Flushes the stream (subject to the NoFlush property)

Write ( long pos, byte buf ) : void

Write method

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

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

Closes the stream (subject to the NoFlush property)
public Close ( ) : void
Результат void

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

Locks the stream (no-op)
public Lock ( ) : void
Результат void

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

Read method
public Read ( long pos, byte buf ) : int
pos long Zero-based position
buf byte Buffer where to store buf.Length byte(s) read from the stream
Результат int

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

Construction
public StreamFile ( System stream )
stream System A where to store the database

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

Construction
public StreamFile ( System stream, long offset )
stream System A where to store the database
offset long Offset within the stream where to store/find the database

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

Flushes the stream (subject to the NoFlush property)
public Sync ( ) : void
Результат void

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

Write method
public Write ( long pos, byte buf ) : void
pos long Zero-based position
buf byte Buffer to write to the stream. The entire buffer is written
Результат void