[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

IoAdapter for in-memory operation.

Namespace: Db4objects.Db4o.IO
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Public Class MemoryIoAdapter _
	Inherits IoAdapter
C#
public class MemoryIoAdapter : IoAdapter
Visual C++
public ref class MemoryIoAdapter : public IoAdapter

Remarks

IoAdapter for in-memory operation.

Configure db4o to operate with this in-memory IoAdapter with
 Copy imageCopy Code
MemoryIoAdapter memoryIoAdapter = new MemoryIoAdapter();
Db4o.configure().io(memoryIoAdapter);



Use the normal #openFile() and #openServer() commands to open ObjectContainers and ObjectServers. The names specified as file names will be used to identify the
 Copy imageCopy Code
byte[]
content of the in-memory files in the _memoryFiles Hashtable in the adapter. After working with an in-memory ObjectContainer/ObjectServer the
 Copy imageCopy Code
byte[]
content is available in the MemoryIoAdapter by using Db4objects.Db4o.IO.MemoryIoAdapter.Get . To add old existing database
 Copy imageCopy Code
byte[]
content to a MemoryIoAdapter use Db4objects.Db4o.IO.MemoryIoAdapter.Put . To reduce memory consumption of memory file names that will no longer be used call Db4objects.Db4o.IO.MemoryIoAdapter.Put and pass an empty byte array.

Inheritance Hierarchy

System.Object
  Db4objects.Db4o.IO.IoAdapter
    Db4objects.Db4o.IO.MemoryIoAdapter