summaryrefslogtreecommitdiff
path: root/swift/src/Ice/SliceInfo.swift
blob: e30d0f192c464a7cab774f3d73a7759e9694ce09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

import Foundation

/// SliceInfo encapsulates the details of a slice for an unknown class or exception type.
public struct SliceInfo {
    /// The Slice type ID for this slice.
    public let typeId: String

    /// The Slice compact type ID for this slice.
    public let compactId: Int32

    /// The encoded bytes for this slice, including the leading size integer.
    public let bytes: Data

    /// The class instances referenced by this slice.
    public var instances: [Ice.Value?]

    /// Whether or not the slice contains optional members.
    public let hasOptionalMembers: Bool

    /// Whether or not this is the last slice.
    public let isLastSlice: Bool
}