Class FfiOwnedHandle
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
otherFfiOwnedHandle
Fields
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
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
Id
public ulong Id { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<FfiOwnedHandle> Parser { get; }
Property Value
- MessageParser<FfiOwnedHandle>
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearId()
Clears the value of the "id" field
public void ClearId()
Clone()
public FfiOwnedHandle Clone()
Returns
Equals(FfiOwnedHandle)
public bool Equals(FfiOwnedHandle other)
Parameters
otherFfiOwnedHandle
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(FfiOwnedHandle)
public void MergeFrom(FfiOwnedHandle other)
Parameters
otherFfiOwnedHandle
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream