Table of Contents

Class DataStream.Types.Chunk

Namespace
LiveKit.Proto
public sealed class DataStream.Types.Chunk : Google.Protobuf.IMessage<DataStream.Types.Chunk>, Google.Protobuf.IBufferMessage
Inheritance
DataStream.Types.Chunk
Implements
IBufferMessage
Extension Methods

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 Google.Protobuf.ByteString Content { get; set; }

Property Value

ByteString

Descriptor

public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasChunkIndex

Gets whether the "chunk_index" field is set

public bool HasChunkIndex { get; }

Property Value

bool

HasContent

Gets whether the "content" field is set

public bool HasContent { get; }

Property Value

bool

HasIv

Gets whether the "iv" field is set

public bool HasIv { get; }

Property Value

bool

HasStreamId

Gets whether the "stream_id" field is set

public bool HasStreamId { get; }

Property Value

bool

HasVersion

Gets whether the "version" field is set

public bool HasVersion { get; }

Property Value

bool

Iv

optional, initialization vector for AES-GCM encryption

public Google.Protobuf.ByteString Iv { get; set; }

Property Value

ByteString

Parser

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

Property Value

MessageParser<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()

public int CalculateSize()

Returns

int

ClearChunkIndex()

Clears the value of the "chunk_index" field

public void ClearChunkIndex()

ClearContent()

Clears the value of the "content" field

public void ClearContent()

ClearIv()

Clears the value of the "iv" field

public void ClearIv()

ClearStreamId()

Clears the value of the "stream_id" field

public void ClearStreamId()

ClearVersion()

Clears the value of the "version" field

public void ClearVersion()

Clone()

public DataStream.Types.Chunk Clone()

Returns

DataStream.Types.Chunk

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)

public void MergeFrom(Google.Protobuf.CodedInputStream input)

Parameters

input CodedInputStream

MergeFrom(Chunk)

public void MergeFrom(DataStream.Types.Chunk other)

Parameters

other DataStream.Types.Chunk

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream