IBin Interface

Summary

Representation of a container for storage of db4o database data (to file, to memory).
graph BT Type["IBin"] class Type type-node Implementing0["SynchronizedBin"]-.->Type click Implementing0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/SynchronizedBin" Implementing1["FileStorage.FileBin"]-.->Type click Implementing1 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/FileBin" Implementing2["ThreadedSyncBin"]-.->Type click Implementing2 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/ThreadedSyncBin" Implementing3["PagingMemoryBin"]-.->Type click Implementing3 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/PagingMemoryBin" Implementing4["MemoryBin"]-.->Type click Implementing4 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/MemoryBin" Implementing5["BinDecorator"]-.->Type click Implementing5 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/BinDecorator" Implementing6["ReadOnlyBin"]-.->Type click Implementing6 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/ReadOnlyBin" Implementing7["BlockAwareBin"]-.->Type click Implementing7 "/db4o-gpl-doc/output/api/Db4objects.Db4o.IO/BlockAwareBin"

Syntax

public interface IBin

Remarks

Representation of a container for storage of db4o database data (to file, to memory).

Methods

Name Value Summary
Close() void
closes the Bin.
Length() long
returns the length of the Bin (on disc, in memory).
Read(long, byte[], int) int
reads a given number of bytes into an array of bytes at an offset position.
Sync() void
flushes the buffer content to the physical storage media.
Sync(IRunnable) void
runs the Runnable between two calls to sync();
SyncRead(long, byte[], int) int
reads a given number of bytes into an array of bytes at an offset position.
Write(long, byte[], int) void
writes a given number of bytes from an array of bytes at an offset position