Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 793x 793x 41x 41x 41x 41x 41x 41x 1x 1x 41x 41x 608x 608x 608x 608x 41x 41x 267x 267x 267x 267x 41x 41x 41x 41x 41x 115x 115x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 2484x 2484x 2484x 2484x 2484x 2484x 2484x 2484x 608x 608x 1876x 1876x 1876x 2484x 2484x 2484x 2484x 1872x 1872x 1876x 1876x 2484x 41x 610x 610x 610x 610x 610x 610x 610x 610x 267x 267x 343x 343x 448x 339x 339x 343x 343x 610x | // Copyright (c) ZeroC, Inc. import { defineClass } from "./DefaultSliceLoader.js"; import { TypeRegistry } from "./TypeRegistry.js"; // // Ice.Value // export class Value { constructor() { this._iceSlicedData = null; } ice_preMarshal() {} ice_postUnmarshal() {} ice_getSlicedData() { return this._iceSlicedData; } _iceWrite(os) { os.startValue(this._iceSlicedData); writeImpl(this, os, this._iceMostDerivedType()); os.endValue(); } _iceRead(is) { is.startValue(); readImpl(this, is, this._iceMostDerivedType()); this._iceSlicedData = is.endValue(); } // // These methods are used for object parameters. // static write(os, v) { os.writeValue(v); } static read(is) { const v = { value: null }; is.readValue(o => { v.value = o; }, this); return v; } } defineClass(Value, "::Ice::Object"); TypeRegistry.declareValueType("Ice.Value", Value); // // Private methods // function writeImpl(obj, os, type) { // // The writeImpl method is a recursive method that goes down the // class hierarchy to marshal each slice of the class using the // generated _iceWriteMemberImpl method. // if (type === undefined || type === Value) { return; // Don't marshal anything for Ice.Value } os.startSlice( type.ice_staticId(), Object.prototype.hasOwnProperty.call(type, "_iceCompactId") ? type._iceCompactId : -1, Object.getPrototypeOf(type) === Value, ); if (Object.hasOwn(type.prototype, "_iceWriteMemberImpl")) { type.prototype._iceWriteMemberImpl.call(obj, os); } os.endSlice(); writeImpl(obj, os, Object.getPrototypeOf(type)); } function readImpl(obj, is, type) { // // The readImpl method is a recursive method that goes down the // class hierarchy to unmarshal each slice of the class using the // generated _iceReadMemberImpl method. // if (type === undefined || type === Value) { return; // Don't unmarshal anything for Ice.Value } is.startSlice(); if (Object.hasOwn(type.prototype, "_iceReadMemberImpl")) { type.prototype._iceReadMemberImpl.call(obj, is); } is.endSlice(); readImpl(obj, is, Object.getPrototypeOf(type)); } |