Table of Contents

Class FfiOwnedHandle

Namespace
LiveKit.Proto

Safety

The foreign language is responsable for disposing handles Forgetting to dispose the handle may lead to memory leaks

Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used on the FfiServer (Atomic reference counting)

When refering to a handle without owning it, we just use a uint32 without this message. (the variable name is suffixed with "_handle")

public sealed class FfiOwnedHandle : Google.Protobuf.IMessage<FfiOwnedHandle>, Google.Protobuf.IBufferMessage
Inheritance
FfiOwnedHandle
Implements
IBufferMessage
Extension Methods

Constructors

FfiOwnedHandle()

public FfiOwnedHandle()

FfiOwnedHandle(FfiOwnedHandle)

public FfiOwnedHandle(FfiOwnedHandle other)

Parameters

other FfiOwnedHandle

Fields

IdFieldNumber

Field number for the "id" field.

public const int IdFieldNumber = 1

Field Value

int

Properties

Descriptor

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

Property Value

MessageDescriptor

HasId

Gets whether the "id" field is set

public bool HasId { get; }

Property Value

bool

Id

public ulong Id { get; set; }

Property Value

ulong

Parser

public static Google.Protobuf.MessageParser<FfiOwnedHandle> Parser { get; }

Property Value

MessageParser<FfiOwnedHandle>

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearId()

Clears the value of the "id" field

public void ClearId()

Clone()

public FfiOwnedHandle Clone()

Returns

FfiOwnedHandle

Equals(FfiOwnedHandle)

public bool Equals(FfiOwnedHandle other)

Parameters

other FfiOwnedHandle

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

public void MergeFrom(FfiOwnedHandle other)

Parameters

other FfiOwnedHandle

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream