Table of Contents

Class DataStream.Types.Chunk

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class DataStream.Types.Chunk : IMessage<DataStream.Types.Chunk>, IEquatable<DataStream.Types.Chunk>, IDeepCloneable<DataStream.Types.Chunk>, IBufferMessage, IMessage
Inheritance
DataStream.Types.Chunk
Implements
IDeepCloneable<DataStream.Types.Chunk>
IBufferMessage
IMessage
Inherited Members

Constructors

Chunk()

public Chunk()

Chunk(Chunk)

public Chunk(DataStream.Types.Chunk other)

Parameters

other DataStream.Types.Chunk

Fields

ChunkIndexFieldNumber

Field number for the "chunk_index" field.

public const int ChunkIndexFieldNumber = 2

Field Value

int

ContentFieldNumber

Field number for the "content" field.

public const int ContentFieldNumber = 3

Field Value

int

IvFieldNumber

Field number for the "iv" field.

public const int IvFieldNumber = 5

Field Value

int

StreamIdFieldNumber

Field number for the "stream_id" field.

public const int StreamIdFieldNumber = 1

Field Value

int

VersionFieldNumber

Field number for the "version" field.

public const int VersionFieldNumber = 4

Field Value

int

Properties

ChunkIndex

public ulong ChunkIndex { get; set; }

Property Value

ulong

Content

content as binary (bytes)

public ByteString Content { get; set; }

Property Value

ByteString

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasIv

Gets whether the "iv" field is set

[Obsolete]
public bool HasIv { get; }

Property Value

bool

Iv

this is set on the DataPacket

[Obsolete]
public ByteString Iv { get; set; }

Property Value

ByteString

Parser

public static MessageParser<DataStream.Types.Chunk> Parser { get; }

Property Value

MessageParser<DataStream.Types.Chunk>

StreamId

unique identifier for this data stream to map it to the correct header

public string StreamId { get; set; }

Property Value

string

Version

a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced

public int Version { get; set; }

Property Value

int

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

ClearIv()

Clears the value of the "iv" field

[Obsolete]
public void ClearIv()

Clone()

Creates a deep clone of this object.

public DataStream.Types.Chunk Clone()

Returns

DataStream.Types.Chunk

A deep clone of this object.

Equals(Chunk)

public bool Equals(DataStream.Types.Chunk other)

Parameters

other DataStream.Types.Chunk

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(Chunk)

Merges the given message into this one.

public void MergeFrom(DataStream.Types.Chunk other)

Parameters

other DataStream.Types.Chunk

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.