Skip to content

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 PgGucExtra

Inheritance: object

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.

Views the owned bytes without permitting mutation.

public ReadOnlySpan<byte> AsSpan()

Returns: ReadOnlySpan<byte>

A read-only view of this instance’s bytes.

Copies the owned bytes to a separately mutable array.

public byte[] ToArray()

Returns: byte[]

An independent copy.

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.

Gets the number of owned bytes. An empty instance remains distinct from absent extra data.

public int Length { get; }

Value: int