Table of Contents

Class BasicRecordStore.RecordAccess

Namespace
BelNytheraSeiche.TrieDictionary
Assembly
BelNytheraSeiche.TrieDictionary.dll

Provides access to and manages a linked list of BasicRecordStore.Record objects.

public sealed class BasicRecordStore.RecordAccess : IEnumerable<BasicRecordStore.Record>, IEnumerable
Inheritance
BasicRecordStore.RecordAccess
Implements
Inherited Members

Remarks

This class implements IEnumerable<T> to allow easy iteration. The collection will throw an InvalidOperationException if modified during enumeration.

Properties

Identifier

Gets the identifier for the head of the linked list that this object accesses.

public int Identifier { get; }

Property Value

int

Methods

Add(ReadOnlySpan<byte>)

Adds a new record with the specified content to the end of the list.

public BasicRecordStore.Record Add(ReadOnlySpan<byte> content)

Parameters

content ReadOnlySpan<byte>

The content of the new record.

Returns

BasicRecordStore.Record

The newly added BasicRecordStore.Record.

Clear()

Removes all records from the list.

public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the records in the list.

public IEnumerator<BasicRecordStore.Record> GetEnumerator()

Returns

IEnumerator<BasicRecordStore.Record>

An enumerator for this record list.