summaryrefslogtreecommitdiff
path: root/js/src/Ice/UnknownSlicedValue.d.ts
blob: 5aa3ab3b47f1608abfc6416eae39835a6f24fe7f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

declare module "ice"
{
    namespace Ice
    {
        /**
         * Encapsulates the details of a slice for an unknown class or exception type.
         */
        class SliceInfo
        {
            /**
             * The Slice type ID for this slice.
             */
            typeId:string;

            /**
             * The Slice compact type ID for this slice.
             */
            compactId:number;

            /**
             * The encoded bytes for this slice, including the leading size integer.
             */
            bytes:Uint8Array;

            /**
             * The class instances referenced by this slice.
             */
            instances:Value[];

            /**
             * Whether or not the slice contains optional members.
             */
            hasOptionalMembers:boolean;

            /**
             * Whether or not this is the last slice.
             */
            isLastSlice:boolean;
        }

        /**
         * Holds the slices of unknown types.
         */
        class SlicedData
        {
            /**
             * The slices of unknown types.
             */
            slices:SliceInfo[];
        }

        class UnknownSlicedValue extends Ice.Value
        {
            constructor(unknownTypeId:string);

            ice_getSlicedData():SlicedData;
            ice_id():string;
        }
    }
}