SequentialSortedTreeWriterTKey, TValueCreate Method

Writes the supplied stream to the binary stream.

Definition

Namespace: SnapDB.Snap.Tree.Specialized
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static void Create(
	BinaryStreamPointerBase stream,
	int blockSize,
	EncodingDefinition treeNodeType,
	TreeStream<TKey, TValue> treeStream
)

Parameters

stream  BinaryStreamPointerBase
The stream to store the sorted tree structure.
blockSize  Int32
The size of each block in the stream.
treeNodeType  EncodingDefinition
The encoding definition for tree node data.
treeStream  TreeStreamTKey, TValue
The tree stream to initialize the sorted tree structure.

Exceptions

ArgumentNullExceptionThrown if stream, treeStream, or treeNodeType is null.
ArgumentExceptionThrown if treeStream does not guarantee sequential reads or contains duplicates.

See Also