Table of Contents

Struct SignatureReader

Namespace
Tmds.DBus.Protocol
Assembly
Tmds.DBus.Protocol.dll

Reader for D-Bus signatures.

public ref struct SignatureReader
Inherited Members

Constructors

SignatureReader(ReadOnlySpan<byte>)

Initializes a new instance of the SignatureReader.

public SignatureReader(ReadOnlySpan<byte> signature)

Parameters

signature ReadOnlySpan<byte>

The signature bytes to read.

Properties

Signature

Gets the remaining signature bytes.

public ReadOnlySpan<byte> Signature { get; }

Property Value

ReadOnlySpan<byte>

Methods

TryRead(out DBusType, out ReadOnlySpan<byte>)

Tries to read the next type from the signature.

public bool TryRead(out DBusType type, out ReadOnlySpan<byte> innerSignature)

Parameters

type DBusType

The D-Bus type that was read.

innerSignature ReadOnlySpan<byte>

For container types, the inner signature.

Returns

bool

True if a type was read; otherwise, false.