Class PrimitiveRecordStore.RecordAccess
- Namespace
- BelNytheraSeiche.TrieDictionary
- Assembly
- BelNytheraSeiche.TrieDictionary.dll
Provides access to a linked list of records within a PrimitiveRecordStore.
public sealed class PrimitiveRecordStore.RecordAccess : IEnumerable<PrimitiveRecordStore.Record>, IEnumerable
- Inheritance
-
PrimitiveRecordStore.RecordAccess
- Implements
- Inherited Members
Remarks
This class implements IEnumerable<T> to allow iterating over the records in the list. 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
Store
Gets the parent PrimitiveRecordStore that this accessor belongs to.
public PrimitiveRecordStore Store { get; }
Property Value
Methods
Add(ReadOnlySpan<byte>)
Adds a new record with the specified content to the end of the list.
public PrimitiveRecordStore.Record Add(ReadOnlySpan<byte> content)
Parameters
content
ReadOnlySpan<byte>The content of the new record.
Returns
- PrimitiveRecordStore.Record
A PrimitiveRecordStore.Record handle for the newly added record.
Exceptions
- InvalidOperationException
The operation is not supported for this accessor instance.
- ArgumentOutOfRangeException
The length of
content
exceeds the maximum allowed size (4096 bytes).
Clear()
Removes all records from this list.
public void Clear()
Exceptions
- InvalidOperationException
The operation is not supported for this accessor instance.
GetEnumerator()
Returns an enumerator that iterates through the records in the list.
public IEnumerator<PrimitiveRecordStore.Record> GetEnumerator()
Returns
- IEnumerator<PrimitiveRecordStore.Record>
An enumerator for this record list.