[This is preliminary documentation and is subject to change.]

Searches the database for BlockDBEntries, based on given criteria.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[NotNullAttribute]
public BlockDBEntry[] Lookup(
	int max,
	BlockDBSearchType searchType,
	Func<BlockDBEntry, bool> selector
)

Parameters

max
Int32
Maximum number of entries to check.
searchType
BlockDBSearchType
Type of search (ReturnAll, ReturnOldest, or ReturnNewest). See BlockDBSearchType enum.
selector
Func<(Of <(<'BlockDBEntry, Boolean>)>)>
Function used to select BlockDBEntries to be returned.

Return Value

Array of BlockDBEntry structs.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException max is less than 0.
System..::..ArgumentNullException selector is null.
System..::..InvalidOperationException BlockDB is disabled.
System.IO..::..EndOfStreamException The end of FBDB file is reached prematurely (corrupted file, or outside interference).
System..::..DataMisalignedException FBDB file is not aligned to 20 bytes (likely corrupted).
System.IO..::..IOException An I/O error occurrs while trying to read FBDB file from disk.

See Also