Interface KeyRecordDictionary.IRecord
- Namespace
- BelNytheraSeiche.TrieDictionary
- Assembly
- BelNytheraSeiche.TrieDictionary.dll
Defines a public contract for a single data record.
public interface KeyRecordDictionary.IRecord
Properties
Content
Gets or sets the byte array content of this record.
byte[] Content { get; set; }
Property Value
- byte[]
ExByte
Gets or sets an extra, user-definable byte of metadata associated with this record (0-255). Not supported by all underlying record stores, only supported by PrimitiveRecordStore.
int ExByte { get; set; }
Property Value
Next
Gets the next record in the linked list, or null if this is the last record.
KeyRecordDictionary.IRecord? Next { get; }
Property Value
Methods
InsertAfter(ReadOnlySpan<byte>)
Inserts a new record immediately after this record in the list.
KeyRecordDictionary.IRecord InsertAfter(ReadOnlySpan<byte> content)
Parameters
content
ReadOnlySpan<byte>The content of the new record to insert.
Returns
- KeyRecordDictionary.IRecord
An KeyRecordDictionary.IRecord handle for the newly inserted record.
InsertBefore(ReadOnlySpan<byte>)
Inserts a new record immediately before this record in the list.
KeyRecordDictionary.IRecord InsertBefore(ReadOnlySpan<byte> content)
Parameters
content
ReadOnlySpan<byte>The content of the new record to insert.
Returns
- KeyRecordDictionary.IRecord
An KeyRecordDictionary.IRecord handle for the newly inserted record.
Remove()
Removes this record from the list it belongs to.
void Remove()