Table of Contents

Struct StreamFormat

Namespace
Mabs.AudioCpp.Models
Assembly
AudioCpp.dll

A stream_format value: sse events or raw chunked audio.

public readonly struct StreamFormat : IEquatable<StreamFormat>
Implements
Inherited Members

Constructors

StreamFormat(string)

Creates a format from its wire string.

public StreamFormat(string value)

Parameters

value string

The wire string, e.g. sse.

Fields

Audio

Chunked raw audio bytes.

public static readonly StreamFormat Audio

Field Value

StreamFormat

Sse

Server-sent events.

public static readonly StreamFormat Sse

Field Value

StreamFormat

Properties

Value

The wire string.

public string Value { get; }

Property Value

string

Methods

Equals(StreamFormat)

public bool Equals(StreamFormat other)

Parameters

other StreamFormat

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator string(StreamFormat)

Implicit conversion to string.

public static implicit operator string(StreamFormat format)

Parameters

format StreamFormat

The format.

Returns

string

The wire string.

implicit operator StreamFormat(string)

Implicit conversion from string.

public static implicit operator StreamFormat(string value)

Parameters

value string

The wire string.

Returns

StreamFormat

The format.