NodeWriterTKey, TValueCreate Method

Creates a new node with the specified parameters and initializes its header and encoding.

Definition

Namespace: SnapDB.Snap.Tree.Specialized
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static void Create(
	EncodingDefinition encodingMethod,
	BinaryStreamPointerBase stream,
	int blockSize,
	byte level,
	uint startingNodeIndex,
	Func<uint> getNextNewNodeIndex,
	SparseIndexWriter<TKey> sparseIndex,
	TreeStream<TKey, TValue> treeStream
)

Parameters

encodingMethod  EncodingDefinition
The encoding method to be used for the node.
stream  BinaryStreamPointerBase
The binary stream where the node will be created.
blockSize  Int32
The size of the node's data block.
level  Byte
The level of the node in the tree.
startingNodeIndex  UInt32
The index of the starting node.
getNextNewNodeIndex  FuncUInt32
A function to get the next new node index.
sparseIndex  SparseIndexWriterTKey
The sparse index writer for the tree.
treeStream  TreeStreamTKey, TValue
The tree stream.

See Also