Table of Contents

Class SliceInfo

Namespace
Ice
Assembly
Ice.dll

Encapsulates the details of a class slice with an unknown type.

public sealed record SliceInfo : IEquatable<SliceInfo>
Inheritance
SliceInfo
Implements
Inherited Members

Constructors

SliceInfo(string, int, byte[], bool, bool)

Encapsulates the details of a class slice with an unknown type.

public SliceInfo(string typeId, int compactId, byte[] bytes, bool hasOptionalMembers, bool isLastSlice)

Parameters

typeId string

The Slice type ID for this slice. It's empty when the compact ID is set (compactId is not -1).

compactId int

The Slice compact type ID for this slice, or -1 if the slice has no compact ID.

bytes byte[]

The encoded bytes for this slice.

hasOptionalMembers bool

Whether or not the slice contains optional members.

isLastSlice bool

Whether or not this is the last slice.

Properties

bytes

The encoded bytes for this slice.

public byte[] bytes { get; init; }

Property Value

byte[]

compactId

The Slice compact type ID for this slice, or -1 if the slice has no compact ID.

public int compactId { get; init; }

Property Value

int

hasOptionalMembers

Whether or not the slice contains optional members.

public bool hasOptionalMembers { get; init; }

Property Value

bool

instances

Gets or sets the class instances referenced by this slice.

public Value[] instances { get; set; }

Property Value

Value[]

isLastSlice

Whether or not this is the last slice.

public bool isLastSlice { get; init; }

Property Value

bool

typeId

The Slice type ID for this slice. It's empty when the compact ID is set (compactId is not -1).

public string typeId { get; init; }

Property Value

string