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
typeIdstringThe Slice type ID for this slice. It's empty when the compact ID is set (
compactIdis not -1).compactIdintThe Slice compact type ID for this slice, or -1 if the slice has no compact ID.
bytesbyte[]The encoded bytes for this slice.
hasOptionalMembersboolWhether or not the slice contains optional members.
isLastSliceboolWhether 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
hasOptionalMembers
Whether or not the slice contains optional members.
public bool hasOptionalMembers { get; init; }
Property Value
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
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; }