PgGucExtra
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Owns immutable bytes prepared by a configuration check hook and supplied to assignment and display hooks. Retained instances remain valid after PostgreSQL changes or restores the setting.
public sealed class PgGucExtraInheritance: object
Constructors
Section titled “Constructors”PgGucExtra(ReadOnlySpan<byte>)
Section titled “PgGucExtra(ReadOnlySpan<byte>)”Owns immutable bytes prepared by a configuration check hook and supplied to assignment and display hooks. Retained instances remain valid after PostgreSQL changes or restores the setting.
public PgGucExtra(ReadOnlySpan<byte> bytes)Parameters:
bytes — ReadOnlySpan<byte>
The bytes to copy into managed ownership.
Methods
Section titled “Methods”AsSpan()
Section titled “AsSpan()”Views the owned bytes without permitting mutation.
public ReadOnlySpan<byte> AsSpan()Returns: ReadOnlySpan<byte>
A read-only view of this instance’s bytes.
ToArray()
Section titled “ToArray()”Copies the owned bytes to a separately mutable array.
public byte[] ToArray()Returns: byte[]
An independent copy.
Properties
Section titled “Properties”this[int]
Section titled “this[int]”Gets the byte at a zero-based position.
public byte this[int index] { get; }Parameters:
index — int
The zero-based byte position.
Value: byte
The stored byte.
Length
Section titled “Length”Gets the number of owned bytes. An empty instance remains distinct from absent extra data.
public int Length { get; }Value: int