DPB2Class · Game state and actions

FileInMemory<TRecord>

Provides file in memory data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki

public class FileInMemory<TRecord>
Reference: DPB2 0.4.5.103No matching type in the reviewed DPB1 catalog.

Members and overloads

6 declared here

Search includes inherited members below. 1 matching inherited member →

GetRecordByAddress

MethodLink ↗
public TRecord? FileInMemory<TRecord>.GetRecordByAddress(long address)

Calls GetRecordByAddress on FileInMemory<TRecord> with address and returns TRecord?. Open the return contract below before using the result.

Return type: TRecord?No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

address
Parameter type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies address.

Returns: The record if found, NULL otherwise

ApproxStructSize

PropertyLink ↗
public long FileInMemory<TRecord>.ApproxStructSize { get; private protected set; }

Calculated structure size.

Value type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

IsValid

PropertyLink ↗
public bool FileInMemory<TRecord>.IsValid { get; private protected set; }

True if the data are been validated.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

RecordCount

PropertyLink ↗
public int FileInMemory<TRecord>.RecordCount { get; init; }

Total number of records in the file

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Records

PropertyLink ↗
public TRecord[] FileInMemory<TRecord>.Records { get; private set; }

Array containing all records in the file, ordered exactly like ingame

Value type: TRecord[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

RecordsByAddress

PropertyLink ↗
public Dictionary<long, TRecord> FileInMemory<TRecord>.RecordsByAddress { get; private set; }

Gets the records by address collection. Its element types are linked below.

Value type: Dictionary<long, TRecord>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Inherited members and contracts

1 public member from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

public string FileInMemory.Filename { get; init; } Declared by FileInMemory

The filename of the file.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.