blob: 8321061cd8ec62fd969c5e59b011754d4f2ad312 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated by the vanadium vdl tool.
var vdl = require('../../../../../../vdl');
var canonicalize = require('../../../../../../vdl/canonicalize');
var types = require('./../types');
module.exports = {};
// Types:
var _type1 = new vdl.Type();
var _type10 = new vdl.Type();
var _type11 = new vdl.Type();
var _type12 = new vdl.Type();
var _type13 = new vdl.Type();
var _type14 = new vdl.Type();
var _type2 = new vdl.Type();
var _type3 = new vdl.Type();
var _type4 = new vdl.Type();
var _type5 = new vdl.Type();
var _type6 = new vdl.Type();
var _type7 = new vdl.Type();
var _type8 = new vdl.Type();
var _type9 = new vdl.Type();
_type1.kind = vdl.kind.LIST;
_type1.name = "";
_type1.elem = new types.TestCase()._type;
_type10.kind = vdl.kind.MAP;
_type10.name = "";
_type10.elem = _type7;
_type10.key = vdl.types.STRING;
_type11.kind = vdl.kind.LIST;
_type11.name = "";
_type11.elem = vdl.types.INT32;
_type12.kind = vdl.kind.LIST;
_type12.name = "";
_type12.elem = vdl.types.STRING;
_type13.kind = vdl.kind.MAP;
_type13.name = "";
_type13.elem = _type14;
_type13.key = vdl.types.STRING;
_type14.kind = vdl.kind.LIST;
_type14.name = "";
_type14.elem = new types.ConvertGroup()._type;
_type2.kind = vdl.kind.LIST;
_type2.name = "";
_type2.elem = vdl.types.BYTE;
_type3.kind = vdl.kind.LIST;
_type3.name = "";
_type3.elem = vdl.types.UINT64;
_type4.kind = vdl.kind.SET;
_type4.name = "";
_type4.key = vdl.types.UINT64;
_type5.kind = vdl.kind.MAP;
_type5.name = "";
_type5.elem = vdl.types.STRING;
_type5.key = vdl.types.UINT64;
_type6.kind = vdl.kind.OPTIONAL;
_type6.name = "";
_type6.elem = new types.NStruct()._type;
_type7.kind = vdl.kind.LIST;
_type7.name = "";
_type7.elem = vdl.types.TYPEOBJECT;
_type8.kind = vdl.kind.OPTIONAL;
_type8.name = "";
_type8.elem = new types.StructAny()._type;
_type9.kind = vdl.kind.LIST;
_type9.name = "";
_type9.elem = new types.StructAny()._type;
_type1.freeze();
_type10.freeze();
_type11.freeze();
_type12.freeze();
_type13.freeze();
_type14.freeze();
_type2.freeze();
_type3.freeze();
_type4.freeze();
_type5.freeze();
_type6.freeze();
_type7.freeze();
_type8.freeze();
_type9.freeze();
// Consts:
module.exports.Tests = canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type1))([
{
'name': "true",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL),
'typeString': "bool",
'hex': "810201",
'hexVersion': "81",
'hexType': "",
'hexValue': "0201",
},
{
'name': "false",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(false, true), vdl.types.BOOL),
'typeString': "bool",
'hex': "810200",
'hexVersion': "81",
'hexType': "",
'hexValue': "0200",
},
{
'name': "\"\"",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("", true), vdl.types.STRING),
'typeString': "string",
'hex': "810600",
'hexVersion': "81",
'hexType': "",
'hexValue': "0600",
},
{
'name': "\"abc\"",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("abc", true), vdl.types.STRING),
'typeString': "string",
'hex': "810603616263",
'hexVersion': "81",
'hexType': "",
'hexValue': "0603616263",
},
{
'name': "[]byte(\"\")",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
]), true), _type2),
'typeString': "[]byte",
'hex': "814e00",
'hexVersion': "81",
'hexType': "",
'hexValue': "4e00",
},
{
'name': "[]byte(\"\\x01\\x02\\x03\")",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
1,
2,
3,
]), true), _type2),
'typeString': "[]byte",
'hex': "814e03010203",
'hexVersion': "81",
'hexType': "",
'hexValue': "4e03010203",
},
{
'name': "[]byte(\"adef\")",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
97,
100,
101,
102,
]), true), _type2),
'typeString': "[]byte",
'hex': "814e0461646566",
'hexVersion': "81",
'hexType': "",
'hexValue': "4e0461646566",
},
{
'name': "byte(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(0, true), vdl.types.BYTE),
'typeString': "byte",
'hex': "810400",
'hexVersion': "81",
'hexType': "",
'hexValue': "0400",
},
{
'name': "byte(127)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(127, true), vdl.types.BYTE),
'typeString': "byte",
'hex': "81047f",
'hexVersion': "81",
'hexType': "",
'hexValue': "047f",
},
{
'name': "byte(255)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(255, true), vdl.types.BYTE),
'typeString': "byte",
'hex': "8104ff",
'hexVersion': "81",
'hexType': "",
'hexValue': "04ff",
},
{
'name': "uint16(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(0, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810800",
'hexVersion': "81",
'hexType': "",
'hexValue': "0800",
},
{
'name': "uint16(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(1, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810801",
'hexVersion': "81",
'hexType': "",
'hexValue': "0801",
},
{
'name': "uint16(2)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(2, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810802",
'hexVersion': "81",
'hexType': "",
'hexValue': "0802",
},
{
'name': "uint16(63)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(63, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "81083f",
'hexVersion': "81",
'hexType': "",
'hexValue': "083f",
},
{
'name': "uint16(64)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(64, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810840",
'hexVersion': "81",
'hexType': "",
'hexValue': "0840",
},
{
'name': "uint16(127)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(127, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "81087f",
'hexVersion': "81",
'hexType': "",
'hexValue': "087f",
},
{
'name': "uint16(128)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(128, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108ff80",
'hexVersion': "81",
'hexType': "",
'hexValue': "08ff80",
},
{
'name': "uint16(255)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(255, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108ffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "08ffff",
},
{
'name': "uint16(256)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(256, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108fe0100",
'hexVersion': "81",
'hexType': "",
'hexValue': "08fe0100",
},
{
'name': "uint16(32766)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(32766, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108fe7ffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "08fe7ffe",
},
{
'name': "uint16(32767)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(32767, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108fe7fff",
'hexVersion': "81",
'hexType': "",
'hexValue': "08fe7fff",
},
{
'name': "uint16(65534)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(65534, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108fefffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "08fefffe",
},
{
'name': "uint16(65535)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(65535, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "8108feffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "08feffff",
},
{
'name': "uint32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(0, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810a00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0a00",
},
{
'name': "uint32(8388606)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(8388606, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afd7ffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afd7ffffe",
},
{
'name': "uint32(8388607)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(8388607, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afd7fffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afd7fffff",
},
{
'name': "uint32(16777214)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(16777214, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afdfffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afdfffffe",
},
{
'name': "uint32(16777215)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(16777215, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afdffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afdffffff",
},
{
'name': "uint32(2147483646)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(2147483646, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afc7ffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afc7ffffffe",
},
{
'name': "uint32(2147483647)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(2147483647, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afc7fffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afc7fffffff",
},
{
'name': "uint32(4294967294)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(4294967294, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afcfffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afcfffffffe",
},
{
'name': "uint32(4294967295)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(4294967295, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810afcffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0afcffffffff",
},
{
'name': "uint64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810c00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0c00",
},
{
'name': "uint64(549755813886)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfb7ffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfb7ffffffffe",
},
{
'name': "uint64(549755813887)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfb7fffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfb7fffffffff",
},
{
'name': "uint64(1099511627774)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfbfffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfbfffffffffe",
},
{
'name': "uint64(1099511627775)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfbffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfbffffffffff",
},
{
'name': "uint64(140737488355326)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfa7ffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfa7ffffffffffe",
},
{
'name': "uint64(140737488355327)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfa7fffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfa7fffffffffff",
},
{
'name': "uint64(281474976710654)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfafffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfafffffffffffe",
},
{
'name': "uint64(281474976710655)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cfaffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cfaffffffffffff",
},
{
'name': "uint64(36028797018963966)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf97ffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf97ffffffffffffe",
},
{
'name': "uint64(36028797018963967)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf97fffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf97fffffffffffff",
},
{
'name': "uint64(72057594037927934)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf9fffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf9fffffffffffffe",
},
{
'name': "uint64(72057594037927935)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf9ffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf9ffffffffffffff",
},
{
'name': "uint64(9223372036854775806)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf87ffffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf87ffffffffffffffe",
},
{
'name': "uint64(9223372036854775807)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf87fffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf87fffffffffffffff",
},
{
'name': "uint64(18446744073709551614)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf8fffffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf8fffffffffffffffe",
},
{
'name': "uint64(18446744073709551615)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810cf8ffffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0cf8ffffffffffffffff",
},
{
'name': "int16(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(0, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e00",
},
{
'name': "int16(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(1, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e02",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e02",
},
{
'name': "int16(2)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(2, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e04",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e04",
},
{
'name': "int16(63)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(63, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e7e",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e7e",
},
{
'name': "int16(64)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(64, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810eff80",
'hexVersion': "81",
'hexType': "",
'hexValue': "0eff80",
},
{
'name': "int16(127)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(127, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efffe",
},
{
'name': "int16(128)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(128, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe0100",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe0100",
},
{
'name': "int16(255)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(255, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe01fe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe01fe",
},
{
'name': "int16(256)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(256, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe0200",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe0200",
},
{
'name': "int16(32766)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(32766, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efefffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efefffc",
},
{
'name': "int16(32767)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(32767, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efefffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efefffe",
},
{
'name': "int32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(0, true), vdl.types.INT32),
'typeString': "int32",
'hex': "811000",
'hexVersion': "81",
'hexType': "",
'hexValue': "1000",
},
{
'name': "int32(8388606)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(8388606, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fdfffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fdfffffc",
},
{
'name': "int32(8388607)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(8388607, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fdfffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fdfffffe",
},
{
'name': "int32(16777214)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(16777214, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fc01fffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fc01fffffc",
},
{
'name': "int32(16777215)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(16777215, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fc01fffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fc01fffffe",
},
{
'name': "int32(2147483646)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(2147483646, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fcfffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fcfffffffc",
},
{
'name': "int32(2147483647)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(2147483647, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fcfffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fcfffffffe",
},
{
'name': "int64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811200",
'hexVersion': "81",
'hexType': "",
'hexValue': "1200",
},
{
'name': "int64(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x1])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811202",
'hexVersion': "81",
'hexType': "",
'hexValue': "1202",
},
{
'name': "int64(2)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x2])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811204",
'hexVersion': "81",
'hexType': "",
'hexValue': "1204",
},
{
'name': "int64(549755813886)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fbfffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fbfffffffffc",
},
{
'name': "int64(549755813887)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fbfffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fbfffffffffe",
},
{
'name': "int64(1099511627774)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fa01fffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fa01fffffffffc",
},
{
'name': "int64(1099511627775)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fa01fffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fa01fffffffffe",
},
{
'name': "int64(140737488355326)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fafffffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fafffffffffffc",
},
{
'name': "int64(140737488355327)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fafffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fafffffffffffe",
},
{
'name': "int64(281474976710654)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f901fffffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f901fffffffffffc",
},
{
'name': "int64(281474976710655)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f901fffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f901fffffffffffe",
},
{
'name': "int64(36028797018963966)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f9fffffffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f9fffffffffffffc",
},
{
'name': "int64(36028797018963967)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f9fffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f9fffffffffffffe",
},
{
'name': "int64(72057594037927934)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f801fffffffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f801fffffffffffffc",
},
{
'name': "int64(72057594037927935)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f801fffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f801fffffffffffffe",
},
{
'name': "int64(9223372036854775806)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f8fffffffffffffffc",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f8fffffffffffffffc",
},
{
'name': "int64(9223372036854775807)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f8fffffffffffffffe",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f8fffffffffffffffe",
},
{
'name': "int16(-1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-1, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e01",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e01",
},
{
'name': "int16(-2)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-2, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e03",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e03",
},
{
'name': "int16(-64)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-64, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e7f",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e7f",
},
{
'name': "int16(-65)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-65, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810eff81",
'hexVersion': "81",
'hexType': "",
'hexValue': "0eff81",
},
{
'name': "int16(-128)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-128, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810effff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0effff",
},
{
'name': "int16(-129)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-129, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe0101",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe0101",
},
{
'name': "int16(-256)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-256, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe01ff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe01ff",
},
{
'name': "int16(-257)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-257, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efe0201",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efe0201",
},
{
'name': "int16(-32767)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-32767, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efefffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efefffd",
},
{
'name': "int16(-32768)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(-32768, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810efeffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "0efeffff",
},
{
'name': "int32(-8388607)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-8388607, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fdfffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fdfffffd",
},
{
'name': "int32(-8388608)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-8388608, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fdffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fdffffff",
},
{
'name': "int32(-16777215)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-16777215, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fc01fffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fc01fffffd",
},
{
'name': "int32(-16777216)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-16777216, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fc01ffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fc01ffffff",
},
{
'name': "int32(-2147483647)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-2147483647, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fcfffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fcfffffffd",
},
{
'name': "int32(-2147483648)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-2147483648, true), vdl.types.INT32),
'typeString': "int32",
'hex': "8110fcffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "10fcffffffff",
},
{
'name': "int64(-1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x1])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811201",
'hexVersion': "81",
'hexType': "",
'hexValue': "1201",
},
{
'name': "int64(-2)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x2])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811203",
'hexVersion': "81",
'hexType': "",
'hexValue': "1203",
},
{
'name': "int64(-549755813887)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fbfffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fbfffffffffd",
},
{
'name': "int64(-549755813888)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fbffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fbffffffffff",
},
{
'name': "int64(-1099511627775)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fa01fffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fa01fffffffffd",
},
{
'name': "int64(-1099511627776)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x1, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fa01ffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fa01ffffffffff",
},
{
'name': "int64(-140737488355327)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112fafffffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12fafffffffffffd",
},
{
'name': "int64(-140737488355328)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112faffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12faffffffffffff",
},
{
'name': "int64(-281474976710655)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f901fffffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f901fffffffffffd",
},
{
'name': "int64(-281474976710656)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f901ffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f901ffffffffffff",
},
{
'name': "int64(-36028797018963967)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f9fffffffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f9fffffffffffffd",
},
{
'name': "int64(-36028797018963968)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f9ffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f9ffffffffffffff",
},
{
'name': "int64(-72057594037927935)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f801fffffffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f801fffffffffffffd",
},
{
'name': "int64(-72057594037927936)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f801ffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f801ffffffffffffff",
},
{
'name': "int64(-9223372036854775807)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f8fffffffffffffffd",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f8fffffffffffffffd",
},
{
'name': "int64(-9223372036854775808)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "8112f8ffffffffffffffff",
'hexVersion': "81",
'hexType': "",
'hexValue': "12f8ffffffffffffffff",
},
{
'name': "float32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(0, true), vdl.types.FLOAT32),
'typeString': "float32",
'hex': "811400",
'hexVersion': "81",
'hexType': "",
'hexValue': "1400",
},
{
'name': "float32(32.5)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(32.5, true), vdl.types.FLOAT32),
'typeString': "float32",
'hex': "8114fd404040",
'hexVersion': "81",
'hexType': "",
'hexValue': "14fd404040",
},
{
'name': "float32(-32.5)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(-32.5, true), vdl.types.FLOAT32),
'typeString': "float32",
'hex': "8114fd4040c0",
'hexVersion': "81",
'hexType': "",
'hexValue': "14fd4040c0",
},
{
'name': "float64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(0, true), vdl.types.FLOAT64),
'typeString': "float64",
'hex': "811600",
'hexVersion': "81",
'hexType': "",
'hexValue': "1600",
},
{
'name': "float64(64.5)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(64.5, true), vdl.types.FLOAT64),
'typeString': "float64",
'hex': "8116fd205040",
'hexVersion': "81",
'hexType': "",
'hexValue': "16fd205040",
},
{
'name': "float64(-64.5)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(-64.5, true), vdl.types.FLOAT64),
'typeString': "float64",
'hex': "8116fd2050c0",
'hexVersion': "81",
'hexType': "",
'hexValue': "16fd2050c0",
},
{
'name': "complex64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX64),
'typeString': "complex64",
'hex': "8118020000",
'hexVersion': "81",
'hexType': "",
'hexValue': "18020000",
},
{
'name': "complex64(64.5+64.5i)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(64.500000, 64.500000), true), vdl.types.COMPLEX64),
'typeString': "complex64",
'hex': "811808fd205040fd205040",
'hexVersion': "81",
'hexType': "",
'hexValue': "1808fd205040fd205040",
},
{
'name': "complex64(64.5-64.5i)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(64.500000, -64.500000), true), vdl.types.COMPLEX64),
'typeString': "complex64",
'hex': "811808fd205040fd2050c0",
'hexVersion': "81",
'hexType': "",
'hexValue': "1808fd205040fd2050c0",
},
{
'name': "complex128(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX128),
'typeString': "complex128",
'hex': "811a020000",
'hexVersion': "81",
'hexType': "",
'hexValue': "1a020000",
},
{
'name': "complex128(128.5+128.5i)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(128.500000, 128.500000), true), vdl.types.COMPLEX128),
'typeString': "complex128",
'hex': "811a08fd106040fd106040",
'hexVersion': "81",
'hexType': "",
'hexValue': "1a08fd106040fd106040",
},
{
'name': "complex128(128.5-128.5i)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(128.500000, -128.500000), true), vdl.types.COMPLEX128),
'typeString': "complex128",
'hex': "811a08fd106040fd1060c0",
'hexVersion': "81",
'hexType': "",
'hexValue': "1a08fd106040fd1060c0",
},
{
'name': "types.NBool(true)",
'value': canonicalize.reduce(new types.NBool(true, true), new types.NBool()._type),
'typeString': "v.io/v23/vom/testdata/types.NBool bool",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15201",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1",
'hexValue': "5201",
},
{
'name': "types.NBool(false)",
'value': canonicalize.reduce(new types.NBool(false, true), new types.NBool()._type),
'typeString': "v.io/v23/vom/testdata/types.NBool bool",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15200",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1",
'hexValue': "5200",
},
{
'name': "types.NString(\"\")",
'value': canonicalize.reduce(new types.NString("", true), new types.NString()._type),
'typeString': "v.io/v23/vom/testdata/types.NString string",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e15200",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e1",
'hexValue': "5200",
},
{
'name': "types.NString(\"abc\")",
'value': canonicalize.reduce(new types.NString("abc", true), new types.NString()._type),
'typeString': "v.io/v23/vom/testdata/types.NString string",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e15203616263",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e1",
'hexValue': "5203616263",
},
{
'name': "types.NByteSlice(\"\")",
'value': canonicalize.reduce(new types.NByteSlice(new Uint8Array([
]), true), new types.NByteSlice()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteSlice []byte",
'hex': "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15200",
'hexVersion': "81",
'hexType': "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1",
'hexValue': "5200",
},
{
'name': "types.NByteSlice(\"\\x01\\x02\\x03\")",
'value': canonicalize.reduce(new types.NByteSlice(new Uint8Array([
1,
2,
3,
]), true), new types.NByteSlice()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteSlice []byte",
'hex': "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15203010203",
'hexVersion': "81",
'hexType': "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1",
'hexValue': "5203010203",
},
{
'name': "types.NByteSlice(\"abc\")",
'value': canonicalize.reduce(new types.NByteSlice(new Uint8Array([
97,
98,
99,
]), true), new types.NByteSlice()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteSlice []byte",
'hex': "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15203616263",
'hexVersion': "81",
'hexType': "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1",
'hexValue': "5203616263",
},
{
'name': "types.NByteArray(\"\\x00\\x00\\x00\\x00\")",
'value': canonicalize.reduce(new types.NByteArray(new Uint8Array([
0,
0,
0,
0,
]), true), new types.NByteArray()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteArray [4]byte",
'hex': "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520000000000",
'hexVersion': "81",
'hexType': "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "520000000000",
},
{
'name': "types.NByteArray(\"\\x01\\x02\\x03\\x00\")",
'value': canonicalize.reduce(new types.NByteArray(new Uint8Array([
1,
2,
3,
0,
]), true), new types.NByteArray()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteArray [4]byte",
'hex': "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520001020300",
'hexVersion': "81",
'hexType': "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "520001020300",
},
{
'name': "types.NByteArray(\"abcd\")",
'value': canonicalize.reduce(new types.NByteArray(new Uint8Array([
97,
98,
99,
100,
]), true), new types.NByteArray()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteArray [4]byte",
'hex': "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520061626364",
'hexVersion': "81",
'hexType': "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "520061626364",
},
{
'name': "types.NByte(0)",
'value': canonicalize.reduce(new types.NByte(0, true), new types.NByte()._type),
'typeString': "v.io/v23/vom/testdata/types.NByte byte",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e15200",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1",
'hexValue': "5200",
},
{
'name': "types.NByte(127)",
'value': canonicalize.reduce(new types.NByte(127, true), new types.NByte()._type),
'typeString': "v.io/v23/vom/testdata/types.NByte byte",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1527f",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1",
'hexValue': "527f",
},
{
'name': "types.NByte(255)",
'value': canonicalize.reduce(new types.NByte(255, true), new types.NByte()._type),
'typeString': "v.io/v23/vom/testdata/types.NByte byte",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e152ff",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1",
'hexValue': "52ff",
},
{
'name': "types.NUint16(0)",
'value': canonicalize.reduce(new types.NUint16(0, true), new types.NUint16()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint16 uint16",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e15200",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1",
'hexValue': "5200",
},
{
'name': "types.NUint16(65535)",
'value': canonicalize.reduce(new types.NUint16(65535, true), new types.NUint16()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint16 uint16",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e152feffff",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1",
'hexValue': "52feffff",
},
{
'name': "types.NUint32(0)",
'value': canonicalize.reduce(new types.NUint32(0, true), new types.NUint32()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint32 uint32",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e15200",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1",
'hexValue': "5200",
},
{
'name': "types.NUint32(4294967295)",
'value': canonicalize.reduce(new types.NUint32(4294967295, true), new types.NUint32()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint32 uint32",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e152fcffffffff",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1",
'hexValue': "52fcffffffff",
},
{
'name': "types.NUint64(0)",
'value': canonicalize.reduce(new types.NUint64(new vdl.BigInt(0, new Uint8Array([])), true), new types.NUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint64 uint64",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e15200",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1",
'hexValue': "5200",
},
{
'name': "types.NUint64(18446744073709551615)",
'value': canonicalize.reduce(new types.NUint64(new vdl.BigInt(1, new Uint8Array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), new types.NUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NUint64 uint64",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e152f8ffffffffffffffff",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1",
'hexValue': "52f8ffffffffffffffff",
},
{
'name': "types.NInt16(0)",
'value': canonicalize.reduce(new types.NInt16(0, true), new types.NInt16()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt16 int16",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15200",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1",
'hexValue': "5200",
},
{
'name': "types.NInt16(32767)",
'value': canonicalize.reduce(new types.NInt16(32767, true), new types.NInt16()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt16 int16",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e152fefffe",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1",
'hexValue': "52fefffe",
},
{
'name': "types.NInt16(-32768)",
'value': canonicalize.reduce(new types.NInt16(-32768, true), new types.NInt16()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt16 int16",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e152feffff",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1",
'hexValue': "52feffff",
},
{
'name': "types.NInt32(0)",
'value': canonicalize.reduce(new types.NInt32(0, true), new types.NInt32()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt32 int32",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15200",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1",
'hexValue': "5200",
},
{
'name': "types.NInt32(2147483647)",
'value': canonicalize.reduce(new types.NInt32(2147483647, true), new types.NInt32()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt32 int32",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e152fcfffffffe",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1",
'hexValue': "52fcfffffffe",
},
{
'name': "types.NInt32(-2147483648)",
'value': canonicalize.reduce(new types.NInt32(-2147483648, true), new types.NInt32()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt32 int32",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e152fcffffffff",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1",
'hexValue': "52fcffffffff",
},
{
'name': "types.NInt64(0)",
'value': canonicalize.reduce(new types.NInt64(new vdl.BigInt(0, new Uint8Array([])), true), new types.NInt64()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt64 int64",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e15200",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "5200",
},
{
'name': "types.NInt64(9223372036854775807)",
'value': canonicalize.reduce(new types.NInt64(new vdl.BigInt(1, new Uint8Array([0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])), true), new types.NInt64()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt64 int64",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152f8fffffffffffffffe",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "52f8fffffffffffffffe",
},
{
'name': "types.NInt64(-9223372036854775808)",
'value': canonicalize.reduce(new types.NInt64(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), new types.NInt64()._type),
'typeString': "v.io/v23/vom/testdata/types.NInt64 int64",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152f8ffffffffffffffff",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "52f8ffffffffffffffff",
},
{
'name': "types.NFloat32(0)",
'value': canonicalize.reduce(new types.NFloat32(0, true), new types.NFloat32()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat32 float32",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae15200",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1",
'hexValue': "5200",
},
{
'name': "types.NFloat32(32.5)",
'value': canonicalize.reduce(new types.NFloat32(32.5, true), new types.NFloat32()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat32 float32",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae152fd404040",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1",
'hexValue': "52fd404040",
},
{
'name': "types.NFloat32(-32.5)",
'value': canonicalize.reduce(new types.NFloat32(-32.5, true), new types.NFloat32()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat32 float32",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae152fd4040c0",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1",
'hexValue': "52fd4040c0",
},
{
'name': "types.NFloat64(0)",
'value': canonicalize.reduce(new types.NFloat64(0, true), new types.NFloat64()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat64 float64",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be15200",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1",
'hexValue': "5200",
},
{
'name': "types.NFloat64(64.5)",
'value': canonicalize.reduce(new types.NFloat64(64.5, true), new types.NFloat64()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat64 float64",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be152fd205040",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1",
'hexValue': "52fd205040",
},
{
'name': "types.NFloat64(-64.5)",
'value': canonicalize.reduce(new types.NFloat64(-64.5, true), new types.NFloat64()._type),
'typeString': "v.io/v23/vom/testdata/types.NFloat64 float64",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be152fd2050c0",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1",
'hexValue': "52fd2050c0",
},
{
'name': "types.NComplex64(0)",
'value': canonicalize.reduce(new types.NComplex64(new vdl.Complex(0.000000, 0.000000), true), new types.NComplex64()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex64 complex64",
'hex': "81512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce152020000",
'hexVersion': "81",
'hexType': "512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce1",
'hexValue': "52020000",
},
{
'name': "types.NComplex64(64.5+64.5i)",
'value': canonicalize.reduce(new types.NComplex64(new vdl.Complex(64.500000, 64.500000), true), new types.NComplex64()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex64 complex64",
'hex': "81512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce15208fd205040fd205040",
'hexVersion': "81",
'hexType': "512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce1",
'hexValue': "5208fd205040fd205040",
},
{
'name': "types.NComplex64(64.5-64.5i)",
'value': canonicalize.reduce(new types.NComplex64(new vdl.Complex(64.500000, -64.500000), true), new types.NComplex64()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex64 complex64",
'hex': "81512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce15208fd205040fd2050c0",
'hexVersion': "81",
'hexType': "512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce1",
'hexValue': "5208fd205040fd2050c0",
},
{
'name': "types.NComplex128(0)",
'value': canonicalize.reduce(new types.NComplex128(new vdl.Complex(0.000000, 0.000000), true), new types.NComplex128()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex128 complex128",
'hex': "81512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de152020000",
'hexVersion': "81",
'hexType': "512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de1",
'hexValue': "52020000",
},
{
'name': "types.NComplex128(128.5+128.5i)",
'value': canonicalize.reduce(new types.NComplex128(new vdl.Complex(128.500000, 128.500000), true), new types.NComplex128()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex128 complex128",
'hex': "81512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de15208fd106040fd106040",
'hexVersion': "81",
'hexType': "512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de1",
'hexValue': "5208fd106040fd106040",
},
{
'name': "types.NComplex128(128.5-128.5i)",
'value': canonicalize.reduce(new types.NComplex128(new vdl.Complex(128.500000, -128.500000), true), new types.NComplex128()._type),
'typeString': "v.io/v23/vom/testdata/types.NComplex128 complex128",
'hex': "81512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de15208fd106040fd1060c0",
'hexVersion': "81",
'hexType': "512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de1",
'hexValue': "5208fd106040fd1060c0",
},
{
'name': "types.NArray2Uint64{1, 2}",
'value': canonicalize.reduce(new types.NArray2Uint64([
new vdl.BigInt(1, new Uint8Array([0x1])),
new vdl.BigInt(1, new Uint8Array([0x2])),
], true), new types.NArray2Uint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64",
'hex': "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000102",
'hexVersion': "81",
'hexType': "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "5203000102",
},
{
'name': "[]uint64{1, 2}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type3))([
new vdl.BigInt(1, new Uint8Array([0x1])),
new vdl.BigInt(1, new Uint8Array([0x2])),
], true), _type3),
'typeString': "[]uint64",
'hex': "815104030106e15203020102",
'hexVersion': "81",
'hexType': "5104030106e1",
'hexValue': "5203020102",
},
{
'name': "types.NListUint64{1, 2}",
'value': canonicalize.reduce(new types.NListUint64([
new vdl.BigInt(1, new Uint8Array([0x1])),
new vdl.BigInt(1, new Uint8Array([0x2])),
], true), new types.NListUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NListUint64 []uint64",
'hex': "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15203020102",
'hexVersion': "81",
'hexType': "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "5203020102",
},
{
'name': "set[uint64]{1}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type4))(new Set([
new vdl.BigInt(1, new Uint8Array([0x1])), ]), true), _type4),
'typeString': "set[uint64]",
'hex': "815104040106e152020101",
'hexVersion': "81",
'hexType': "5104040106e1",
'hexValue': "52020101",
},
{
'name': "types.NSetUint64{1}",
'value': canonicalize.reduce(new types.NSetUint64(new Set([
new vdl.BigInt(1, new Uint8Array([0x1])), ]), true), new types.NSetUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]",
'hex': "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152020101",
'hexVersion': "81",
'hexType': "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "52020101",
},
{
'name': "map[uint64]string{1: \"abc\"}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type5))(new Map([
[new vdl.BigInt(1, new Uint8Array([0x1])), "abc"]]), true), _type5),
'typeString': "map[uint64]string",
'hex': "8151060501060203e15206010103616263",
'hexVersion': "81",
'hexType': "51060501060203e1",
'hexValue': "5206010103616263",
},
{
'name': "types.NMapUint64String{1: \"abc\"}",
'value': canonicalize.reduce(new types.NMapUint64String(new Map([
[new vdl.BigInt(1, new Uint8Array([0x1])), "abc"]]), true), new types.NMapUint64String()._type),
'typeString': "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string",
'hex': "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e15206010103616263",
'hexVersion': "81",
'hexType': "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "5206010103616263",
},
{
'name': "types.NStruct{A: true, B: \"abc\", C: 123}",
'value': canonicalize.reduce(new types.NStruct({
'a': true,
'b': "abc",
'c': new vdl.BigInt(1, new Uint8Array([0x7b])),
}, true), new types.NStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1520b0001010361626302fff6e1",
'hexVersion': "81",
'hexType': "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "520b0001010361626302fff6e1",
},
{
'name': "?types.NStruct(nil)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type6))(null, true), _type6),
'typeString': "?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae15201e0",
'hexVersion': "81",
'hexType': "533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae1",
'hexValue': "5201e0",
},
{
'name': "?types.NStruct{}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type6))({
'a': false,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), _type6),
'typeString': "?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae15201e1",
'hexVersion': "81",
'hexType': "533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae1",
'hexValue': "5201e1",
},
{
'name': "?types.NStruct{A: true, B: \"abc\", C: 123}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type6))({
'a': true,
'b': "abc",
'c': new vdl.BigInt(1, new Uint8Array([0x7b])),
}, true), _type6),
'typeString': "?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae1520b0001010361626302fff6e1",
'hexVersion': "81",
'hexType': "533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae1",
'hexValue': "520b0001010361626302fff6e1",
},
{
'name': "types.NEnum.A",
'value': types.NEnum.A,
'typeString': "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}",
'hex': "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15200",
'hexVersion': "81",
'hexType': "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1",
'hexValue': "5200",
},
{
'name': "types.NEnum.B",
'value': types.NEnum.B,
'typeString': "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}",
'hex': "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15201",
'hexVersion': "81",
'hexType': "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1",
'hexValue': "5201",
},
{
'name': "types.NEnum.C",
'value': types.NEnum.C,
'typeString': "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}",
'hex': "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15202",
'hexVersion': "81",
'hexType': "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1",
'hexValue': "5202",
},
{
'name': "types.NUnion{A: true}",
'value': canonicalize.reduce(new types.NUnion({ "a": true }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020001",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020001",
},
{
'name': "types.NUnion{A: false}",
'value': canonicalize.reduce(new types.NUnion({ "a": false }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020000",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020000",
},
{
'name': "types.NUnion{B: \"\"}",
'value': canonicalize.reduce(new types.NUnion({ "b": "" }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020100",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020100",
},
{
'name': "types.NUnion{B: \"abc\"}",
'value': canonicalize.reduce(new types.NUnion({ "b": "abc" }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152050103616263",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52050103616263",
},
{
'name': "types.NUnion{C: 0}",
'value': canonicalize.reduce(new types.NUnion({ "c": new vdl.BigInt(0, new Uint8Array([])) }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020200",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020200",
},
{
'name': "types.NUnion{C: 123}",
'value': canonicalize.reduce(new types.NUnion({ "c": new vdl.BigInt(1, new Uint8Array([0x7b])) }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1520302fff6",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "520302fff6",
},
{
'name': "types.NUnion{C: -123}",
'value': canonicalize.reduce(new types.NUnion({ "c": new vdl.BigInt(-1, new Uint8Array([0x7b])) }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1520302fff5",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "520302fff5",
},
{
'name': "types.MBool(true)",
'value': canonicalize.reduce(new types.MBool(true, true), new types.MBool()._type),
'typeString': "v.io/v23/vom/testdata/types.MBool bool",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e15201",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1",
'hexValue': "5201",
},
{
'name': "types.MBool(false)",
'value': canonicalize.reduce(new types.MBool(false, true), new types.MBool()._type),
'typeString': "v.io/v23/vom/testdata/types.MBool bool",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e15200",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1",
'hexValue': "5200",
},
{
'name': "types.MStruct{A: true, B: true, C: true}",
'value': canonicalize.reduce(new types.MStruct({
'a': true,
'b': true,
'c': true,
'd': null,
'e': vdl.types.ANY,
'f': null,
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1520007000101010201e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "520007000101010201e1",
},
{
'name': "types.MStruct{}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': null,
'e': vdl.types.ANY,
'f': null,
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1520001e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "520001e1",
},
{
'name': "types.MStruct{D: {}}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': {
'a': false,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
},
'e': vdl.types.ANY,
'f': null,
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152000303e1e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "52000303e1e1",
},
{
'name': "types.MStruct{D: {A: true, B: \"abc\", C: 123}}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': {
'a': true,
'b': "abc",
'c': new vdl.BigInt(1, new Uint8Array([0x7b])),
},
'e': vdl.types.ANY,
'f': null,
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152000d030001010361626302fff6e1e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "52000d030001010361626302fff6e1e1",
},
{
'name': "types.MStruct{F: \"abc\"}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': null,
'e': vdl.types.ANY,
'f': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("abc", true), vdl.types.STRING),
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152010307050003616263e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "52010307050003616263e1",
},
{
'name': "types.MStruct{F: types.MBool(true)}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': null,
'e': vdl.types.ANY,
'f': canonicalize.reduce(new types.MBool(true, true), new types.MBool()._type),
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152012b04050001e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "52012b04050001e1",
},
{
'name': "types.MStruct{F: ?types.NStruct{B: \"abc\"}}",
'value': canonicalize.reduce(new types.MStruct({
'a': false,
'b': false,
'c': false,
'd': null,
'e': vdl.types.ANY,
'f': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type6))({
'a': false,
'b': "abc",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), _type6),
}, true), new types.MStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}",
'hex': "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152012c0905000103616263e1e1",
'hexVersion': "81",
'hexType': "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1",
'hexValue': "52012c0905000103616263e1e1",
},
{
'name': "types.MList{{4, 2}, {}, {99}}",
'value': canonicalize.reduce(new types.MList([
[
new vdl.BigInt(1, new Uint8Array([0x4])),
new vdl.BigInt(1, new Uint8Array([0x2])),
],
[
],
[
new vdl.BigInt(1, new Uint8Array([0x63])),
],
], true), new types.MList()._type),
'typeString': "v.io/v23/vom/testdata/types.MList []v.io/v23/vom/testdata/types.NListUint64 []uint64",
'hex': "81532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15127030021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4c697374012ae1520703020402000163",
'hexVersion': "81",
'hexType': "532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15127030021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4c697374012ae1",
'hexValue': "520703020402000163",
},
{
'name': "types.MMap{4.5: {2, 3}}",
'value': canonicalize.reduce(new types.MMap(new Map([
[4.5, [
new vdl.BigInt(1, new Uint8Array([0x2])),
new vdl.BigInt(1, new Uint8Array([0x3])),
]]]), true), new types.MMap()._type),
'typeString': "v.io/v23/vom/testdata/types.MMap map[v.io/v23/vom/testdata/types.NFloat32 float32]v.io/v23/vom/testdata/types.NListUint64 []uint64",
'hex': "81532a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1552d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15128050020762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4d6170012a022be1520701fe1240020203",
'hexVersion': "81",
'hexType': "532a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1552d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15128050020762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4d6170012a022be1",
'hexValue': "520701fe1240020203",
},
{
'name': "types.RecA{{}, {{}}}",
'value': canonicalize.reduce(new types.RecA([
[
],
[
[
],
],
], true), new types.RecA()._type),
'typeString': "v.io/v23/vom/testdata/types.RecA []v.io/v23/vom/testdata/types.RecA",
'hex': "815126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563410129e1520402000100",
'hexVersion': "81",
'hexType': "5126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563410129e1",
'hexValue': "520402000100",
},
{
'name': "types.RecX{{}, {{}, {}}}",
'value': canonicalize.reduce(new types.RecX([
[
],
[
[
],
[
],
],
], true), new types.RecX()._type),
'typeString': "v.io/v23/vom/testdata/types.RecX []v.io/v23/vom/testdata/types.RecY []v.io/v23/vom/testdata/types.RecX",
'hex': "815326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563590129e15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656358012ae152050200020000",
'hexVersion': "81",
'hexType': "5326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563590129e15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656358012ae1",
'hexValue': "52050200020000",
},
{
'name': "types.RecStruct{A: {}}",
'value': canonicalize.reduce(new types.RecStruct({
'a': {
'a': null,
},
}, true), new types.RecStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.RecStruct struct{A ?v.io/v23/vom/testdata/types.RecStruct}",
'hex': "815304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1520300e1e1",
'hexVersion': "81",
'hexType': "5304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1",
'hexValue': "520300e1e1",
},
{
'name': "types.RecStruct{A: {A: {}}}",
'value': canonicalize.reduce(new types.RecStruct({
'a': {
'a': {
'a': null,
},
},
}, true), new types.RecStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.RecStruct struct{A ?v.io/v23/vom/testdata/types.RecStruct}",
'hex': "815304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e152050000e1e1e1",
'hexVersion': "81",
'hexType': "5304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1",
'hexValue': "52050000e1e1e1",
},
{
'name': "typeobject(any)",
'value': vdl.types.ANY,
'typeString': "typeobject",
'hex': "811c010f00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010f00",
},
{
'name': "typeobject(bool)",
'value': vdl.types.BOOL,
'typeString': "typeobject",
'hex': "811c010100",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010100",
},
{
'name': "typeobject(uint16)",
'value': vdl.types.UINT16,
'typeString': "typeobject",
'hex': "811c010400",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010400",
},
{
'name': "typeobject(uint32)",
'value': vdl.types.UINT32,
'typeString': "typeobject",
'hex': "811c010500",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010500",
},
{
'name': "typeobject(uint64)",
'value': vdl.types.UINT64,
'typeString': "typeobject",
'hex': "811c010600",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010600",
},
{
'name': "typeobject(int16)",
'value': vdl.types.INT16,
'typeString': "typeobject",
'hex': "811c010700",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010700",
},
{
'name': "typeobject(int32)",
'value': vdl.types.INT32,
'typeString': "typeobject",
'hex': "811c010800",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010800",
},
{
'name': "typeobject(int64)",
'value': vdl.types.INT64,
'typeString': "typeobject",
'hex': "811c010900",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010900",
},
{
'name': "typeobject(int16)",
'value': vdl.types.INT16,
'typeString': "typeobject",
'hex': "811c010700",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010700",
},
{
'name': "typeobject(int32)",
'value': vdl.types.INT32,
'typeString': "typeobject",
'hex': "811c010800",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010800",
},
{
'name': "typeobject(int64)",
'value': vdl.types.INT64,
'typeString': "typeobject",
'hex': "811c010900",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010900",
},
{
'name': "typeobject(float32)",
'value': vdl.types.FLOAT32,
'typeString': "typeobject",
'hex': "811c010a00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010a00",
},
{
'name': "typeobject(float64)",
'value': vdl.types.FLOAT64,
'typeString': "typeobject",
'hex': "811c010b00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010b00",
},
{
'name': "typeobject(complex64)",
'value': vdl.types.COMPLEX64,
'typeString': "typeobject",
'hex': "811c010c00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010c00",
},
{
'name': "typeobject(complex128)",
'value': vdl.types.COMPLEX128,
'typeString': "typeobject",
'hex': "811c010d00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010d00",
},
{
'name': "typeobject(types.NBool)",
'value': new types.NBool()._type,
'typeString': "typeobject",
'hex': "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e11c012900",
'hexVersion': "81",
'hexType': "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NUint16)",
'value': new types.NUint16()._type,
'typeString': "typeobject",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e11c012900",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NUint32)",
'value': new types.NUint32()._type,
'typeString': "typeobject",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e11c012900",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NUint64)",
'value': new types.NUint64()._type,
'typeString': "typeobject",
'hex': "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e11c012900",
'hexVersion': "81",
'hexType': "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NInt16)",
'value': new types.NInt16()._type,
'typeString': "typeobject",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e11c012900",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NInt32)",
'value': new types.NInt32()._type,
'typeString': "typeobject",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e11c012900",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NInt64)",
'value': new types.NInt64()._type,
'typeString': "typeobject",
'hex': "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e11c012900",
'hexVersion': "81",
'hexType': "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NFloat32)",
'value': new types.NFloat32()._type,
'typeString': "typeobject",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae11c012900",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NFloat64)",
'value': new types.NFloat64()._type,
'typeString': "typeobject",
'hex': "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be11c012900",
'hexVersion': "81",
'hexType': "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NComplex64)",
'value': new types.NComplex64()._type,
'typeString': "typeobject",
'hex': "81512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce11c012900",
'hexVersion': "81",
'hexType': "512c000026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c65783634010ce1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NComplex128)",
'value': new types.NComplex128()._type,
'typeString': "typeobject",
'hex': "81512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de11c012900",
'hexVersion': "81",
'hexType': "512d000027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e436f6d706c6578313238010de1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NArray2Uint64)",
'value': new types.NArray2Uint64()._type,
'typeString': "typeobject",
'hex': "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e11c012900",
'hexVersion': "81",
'hexType': "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "1c012900",
},
{
'name': "typeobject([]uint64)",
'value': _type3,
'typeString': "typeobject",
'hex': "815104030106e11c012900",
'hexVersion': "81",
'hexType': "5104030106e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NListUint64)",
'value': new types.NListUint64()._type,
'typeString': "typeobject",
'hex': "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e11c012900",
'hexVersion': "81",
'hexType': "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(set[uint64])",
'value': _type4,
'typeString': "typeobject",
'hex': "815104040106e11c012900",
'hexVersion': "81",
'hexType': "5104040106e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NSetUint64)",
'value': new types.NSetUint64()._type,
'typeString': "typeobject",
'hex': "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e11c012900",
'hexVersion': "81",
'hexType': "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(map[uint64]string)",
'value': _type5,
'typeString': "typeobject",
'hex': "8151060501060203e11c012900",
'hexVersion': "81",
'hexType': "51060501060203e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NMapUint64String)",
'value': new types.NMapUint64String()._type,
'typeString': "typeobject",
'hex': "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e11c012900",
'hexVersion': "81",
'hexType': "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NStruct)",
'value': new types.NStruct()._type,
'typeString': "typeobject",
'hex': "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e11c012900",
'hexVersion': "81",
'hexType': "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NEnum)",
'value': types.NEnum.A._type,
'typeString': "typeobject",
'hex': "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e11c012900",
'hexVersion': "81",
'hexType': "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1",
'hexValue': "1c012900",
},
{
'name': "typeobject(types.NUnion)",
'value': new types.NUnion()._type,
'typeString': "typeobject",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e11c012900",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "1c012900",
},
{
'name': "[]typeobject{typeobject(any), typeobject(bool)}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type7))([
vdl.types.ANY,
vdl.types.BOOL,
], true), _type7),
'typeString': "[]typeobject",
'hex': "81510403010ee152020f0103020001",
'hexVersion': "81",
'hexType': "510403010ee1",
'hexValue': "52020f0103020001",
},
{
'name': "types.StructAny{}",
'value': canonicalize.reduce(new types.StructAny({
'any': null,
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1520001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "520001e1",
},
{
'name': "types.StructAny{Any: false}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(false, true), vdl.types.BOOL),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010104000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010104000000e1",
},
{
'name': "types.StructAny{Any: int16(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(0, true), vdl.types.INT16),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010704000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010704000000e1",
},
{
'name': "types.StructAny{Any: int32(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(0, true), vdl.types.INT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010804000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010804000000e1",
},
{
'name': "types.StructAny{Any: int64(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.INT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010904000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010904000000e1",
},
{
'name': "types.StructAny{Any: uint16(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(0, true), vdl.types.UINT16),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010404000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010404000000e1",
},
{
'name': "types.StructAny{Any: uint32(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(0, true), vdl.types.UINT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010504000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010504000000e1",
},
{
'name': "types.StructAny{Any: uint64(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.UINT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010604000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010604000000e1",
},
{
'name': "types.StructAny{Any: float32(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(0, true), vdl.types.FLOAT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010a04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010a04000000e1",
},
{
'name': "types.StructAny{Any: float64(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(0, true), vdl.types.FLOAT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010b04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010b04000000e1",
},
{
'name': "types.StructAny{Any: complex64(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010c0500000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010c0500000000e1",
},
{
'name': "types.StructAny{Any: complex128(0)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX128),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010d0500000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010d0500000000e1",
},
{
'name': "types.StructAny{Any: \"\"}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("", true), vdl.types.STRING),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010304000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010304000000e1",
},
{
'name': "types.StructAny{Any: []byte(\"\")}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
]), true), _type2),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152012704000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52012704000000e1",
},
{
'name': "types.StructAny{Any: types.FoodEnum.Bean}",
'value': canonicalize.reduce(new types.StructAny({
'any': types.FoodEnum.BEAN,
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e152012a04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1",
'hexValue': "52012a04000000e1",
},
{
'name': "types.StructAny{Any: types.NListUint64{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NListUint64([
], true), new types.NListUint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152012a04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "52012a04000000e1",
},
{
'name': "types.StructAny{Any: types.NByteArray(\"\\x00\\x00\\x00\\x00\")}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NByteArray(new Uint8Array([
0,
0,
0,
0,
]), true), new types.NByteArray()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e152012a0800000000000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "52012a0800000000000000e1",
},
{
'name': "types.StructAny{Any: types.NArray2Uint64{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NArray2Uint64([
new vdl.BigInt(0, new Uint8Array([])),
new vdl.BigInt(0, new Uint8Array([])),
], true), new types.NArray2Uint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e152012a060000000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "52012a060000000000e1",
},
{
'name': "types.StructAny{Any: types.NSetUint64{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NSetUint64(new Set([]), true), new types.NSetUint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152012a04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "52012a04000000e1",
},
{
'name': "types.StructAny{Any: types.NMapUint64String{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NMapUint64String(new Map([]), true), new types.NMapUint64String()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e152012a04000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "52012a04000000e1",
},
{
'name': "types.StructAny{Any: types.NStruct{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NStruct({
'a': false,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.NStruct()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152012a040000e1e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "52012a040000e1e1",
},
{
'name': "types.StructAny{Any: types.NUnion{A: false}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NUnion({ "a": false }, true), new types.NUnion()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152012a0500000000e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52012a0500000000e1",
},
{
'name': "types.StructAny{Any: types.StructMap{}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.StructMap({
'map': new Map([]),
}, true), new types.StructMap()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e152012a040000e1e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e1",
'hexValue': "52012a040000e1e1",
},
{
'name': "types.StructAny{Any: types.StructMap{Map: {0: 0}}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.StructMap({
'map': new Map([
[new vdl.BigInt(0, new Uint8Array([])), new vdl.BigInt(0, new Uint8Array([]))]]),
}, true), new types.StructMap()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e152012a08000000010000e1e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e1",
'hexValue': "52012a08000000010000e1e1",
},
{
'name': "types.StructAny{Any: typeobject(any)}",
'value': canonicalize.reduce(new types.StructAny({
'any': vdl.types.ANY,
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152020e0f04000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52020e0f04000001e1",
},
{
'name': "?types.StructAny(nil)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type8))(null, true), _type8),
'typeString': "?v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1520001e0",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1",
'hexValue': "520001e0",
},
{
'name': "?types.StructAny{}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type8))({
'any': null,
}, true), _type8),
'typeString': "?v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1520001e1",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1",
'hexValue': "520001e1",
},
{
'name': "?types.StructAny{Any: false}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type8))({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(false, true), vdl.types.BOOL),
}, true), _type8),
'typeString': "?v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae152010104000000e1",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1",
'hexValue': "52010104000000e1",
},
{
'name': "?types.StructAny{Any: types.StructMap{}}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type8))({
'any': canonicalize.reduce(new types.StructMap({
'map': new Map([]),
}, true), new types.StructMap()._type),
}, true), _type8),
'typeString': "?v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae157060501090209e15533060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012ce1e152012b040000e1e1",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae157060501090209e15533060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012ce1e1",
'hexValue': "52012b040000e1e1",
},
{
'name': "?types.StructAny{Any: types.StructMap{Map: {0: 0}}}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type8))({
'any': canonicalize.reduce(new types.StructMap({
'map': new Map([
[new vdl.BigInt(0, new Uint8Array([])), new vdl.BigInt(0, new Uint8Array([]))]]),
}, true), new types.StructMap()._type),
}, true), _type8),
'typeString': "?v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae157060501090209e15533060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012ce1e152012b08000000010000e1e1",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae157060501090209e15533060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012ce1e1",
'hexValue': "52012b08000000010000e1e1",
},
{
'name': "types.StructAny{Any: true}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010104000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010104000001e1",
},
{
'name': "types.StructAny{Any: byte(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(1, true), vdl.types.BYTE),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010204000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010204000001e1",
},
{
'name': "types.StructAny{Any: int16(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(1, true), vdl.types.INT16),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010704000002e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010704000002e1",
},
{
'name': "types.StructAny{Any: int32(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(1, true), vdl.types.INT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010804000002e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010804000002e1",
},
{
'name': "types.StructAny{Any: int64(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x1])), true), vdl.types.INT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010904000002e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010904000002e1",
},
{
'name': "types.StructAny{Any: uint16(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(1, true), vdl.types.UINT16),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010404000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010404000001e1",
},
{
'name': "types.StructAny{Any: uint32(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(1, true), vdl.types.UINT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010504000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010504000001e1",
},
{
'name': "types.StructAny{Any: uint64(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x1])), true), vdl.types.UINT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010604000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010604000001e1",
},
{
'name': "types.StructAny{Any: float32(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(1, true), vdl.types.FLOAT32),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010a060000fef03fe1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010a060000fef03fe1",
},
{
'name': "types.StructAny{Any: float64(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(1, true), vdl.types.FLOAT64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010b060000fef03fe1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010b060000fef03fe1",
},
{
'name': "types.StructAny{Any: complex64(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(1.000000, 0.000000), true), vdl.types.COMPLEX64),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010c070000fef03f00e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010c070000fef03f00e1",
},
{
'name': "types.StructAny{Any: complex128(1)}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(1.000000, 0.000000), true), vdl.types.COMPLEX128),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010d070000fef03f00e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52010d070000fef03f00e1",
},
{
'name': "types.StructAny{Any: \"A\"}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("A", true), vdl.types.STRING),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15201030500000141e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "5201030500000141e1",
},
{
'name': "types.StructAny{Any: []byte(\"A\")}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
65,
]), true), _type2),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15201270500000141e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "5201270500000141e1",
},
{
'name': "types.StructAny{Any: types.FoodEnum.Cherry}",
'value': canonicalize.reduce(new types.StructAny({
'any': types.FoodEnum.CHERRY,
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e152012a04000002e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1",
'hexValue': "52012a04000002e1",
},
{
'name': "types.StructAny{Any: types.NListUint64{1}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NListUint64([
new vdl.BigInt(1, new Uint8Array([0x1])),
], true), new types.NListUint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152012a0500000101e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "52012a0500000101e1",
},
{
'name': "types.StructAny{Any: types.NByteArray(\"Abcd\")}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NByteArray(new Uint8Array([
65,
98,
99,
100,
]), true), new types.NByteArray()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e152012a0800000041626364e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "52012a0800000041626364e1",
},
{
'name': "types.StructAny{Any: types.NArray2Uint64{0, 1}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NArray2Uint64([
new vdl.BigInt(0, new Uint8Array([])),
new vdl.BigInt(1, new Uint8Array([0x1])),
], true), new types.NArray2Uint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e152012a060000000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "52012a060000000001e1",
},
{
'name': "types.StructAny{Any: types.NSetUint64{1}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NSetUint64(new Set([
new vdl.BigInt(1, new Uint8Array([0x1])), ]), true), new types.NSetUint64()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152012a0500000101e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "52012a0500000101e1",
},
{
'name': "types.StructAny{Any: types.NMapUint64String{1: \"A\"}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NMapUint64String(new Map([
[new vdl.BigInt(1, new Uint8Array([0x1])), "A"]]), true), new types.NMapUint64String()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e152012a07000001010141e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "52012a07000001010141e1",
},
{
'name': "types.StructAny{Any: types.NStruct{A: true}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NStruct({
'a': true,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.NStruct()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152012a0600000001e1e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "52012a0600000001e1e1",
},
{
'name': "types.StructAny{Any: types.NUnion{A: true}}",
'value': canonicalize.reduce(new types.StructAny({
'any': canonicalize.reduce(new types.NUnion({ "a": true }, true), new types.NUnion()._type),
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152012a0500000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52012a0500000001e1",
},
{
'name': "types.StructAny{Any: typeobject(bool)}",
'value': canonicalize.reduce(new types.StructAny({
'any': vdl.types.BOOL,
}, true), new types.StructAny()._type),
'typeString': "v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152020e0104000001e1",
'hexVersion': "81",
'hexType': "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1",
'hexValue': "52020e0104000001e1",
},
{
'name': "any(nil)",
'value': null,
'typeString': "any",
'hex': "811e0001e0",
'hexVersion': "81",
'hexType': "",
'hexValue': "1e0001e0",
},
{
'name': "false",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(false, true), vdl.types.BOOL),
'typeString': "bool",
'hex': "810200",
'hexVersion': "81",
'hexType': "",
'hexValue': "0200",
},
{
'name': "byte(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(0, true), vdl.types.BYTE),
'typeString': "byte",
'hex': "810400",
'hexVersion': "81",
'hexType': "",
'hexValue': "0400",
},
{
'name': "int16(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(0, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e00",
},
{
'name': "int32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(0, true), vdl.types.INT32),
'typeString': "int32",
'hex': "811000",
'hexVersion': "81",
'hexType': "",
'hexValue': "1000",
},
{
'name': "int64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811200",
'hexVersion': "81",
'hexType': "",
'hexValue': "1200",
},
{
'name': "uint16(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(0, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810800",
'hexVersion': "81",
'hexType': "",
'hexValue': "0800",
},
{
'name': "uint32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(0, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810a00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0a00",
},
{
'name': "uint64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(0, new Uint8Array([])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810c00",
'hexVersion': "81",
'hexType': "",
'hexValue': "0c00",
},
{
'name': "float32(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(0, true), vdl.types.FLOAT32),
'typeString': "float32",
'hex': "811400",
'hexVersion': "81",
'hexType': "",
'hexValue': "1400",
},
{
'name': "float64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(0, true), vdl.types.FLOAT64),
'typeString': "float64",
'hex': "811600",
'hexVersion': "81",
'hexType': "",
'hexValue': "1600",
},
{
'name': "complex64(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX64),
'typeString': "complex64",
'hex': "8118020000",
'hexVersion': "81",
'hexType': "",
'hexValue': "18020000",
},
{
'name': "complex128(0)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(0.000000, 0.000000), true), vdl.types.COMPLEX128),
'typeString': "complex128",
'hex': "811a020000",
'hexVersion': "81",
'hexType': "",
'hexValue': "1a020000",
},
{
'name': "\"\"",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("", true), vdl.types.STRING),
'typeString': "string",
'hex': "810600",
'hexVersion': "81",
'hexType': "",
'hexValue': "0600",
},
{
'name': "[]byte(\"\")",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
]), true), _type2),
'typeString': "[]byte",
'hex': "814e00",
'hexVersion': "81",
'hexType': "",
'hexValue': "4e00",
},
{
'name': "types.FoodEnum.Bean",
'value': types.FoodEnum.BEAN,
'typeString': "v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry}",
'hex': "81513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e15200",
'hexVersion': "81",
'hexType': "513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1",
'hexValue': "5200",
},
{
'name': "types.NListUint64{}",
'value': canonicalize.reduce(new types.NListUint64([
], true), new types.NListUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NListUint64 []uint64",
'hex': "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1520100",
'hexVersion': "81",
'hexType': "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "520100",
},
{
'name': "types.NByteArray(\"\\x00\\x00\\x00\\x00\")",
'value': canonicalize.reduce(new types.NByteArray(new Uint8Array([
0,
0,
0,
0,
]), true), new types.NByteArray()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteArray [4]byte",
'hex': "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520000000000",
'hexVersion': "81",
'hexType': "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "520000000000",
},
{
'name': "types.NArray2Uint64{}",
'value': canonicalize.reduce(new types.NArray2Uint64([
new vdl.BigInt(0, new Uint8Array([])),
new vdl.BigInt(0, new Uint8Array([])),
], true), new types.NArray2Uint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64",
'hex': "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000000",
'hexVersion': "81",
'hexType': "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "5203000000",
},
{
'name': "types.NSetUint64{}",
'value': canonicalize.reduce(new types.NSetUint64(new Set([]), true), new types.NSetUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]",
'hex': "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1520100",
'hexVersion': "81",
'hexType': "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "520100",
},
{
'name': "types.NMapUint64String{}",
'value': canonicalize.reduce(new types.NMapUint64String(new Map([]), true), new types.NMapUint64String()._type),
'typeString': "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string",
'hex': "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1520100",
'hexVersion': "81",
'hexType': "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "520100",
},
{
'name': "types.NStruct{}",
'value': canonicalize.reduce(new types.NStruct({
'a': false,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.NStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e15201e1",
'hexVersion': "81",
'hexType': "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "5201e1",
},
{
'name': "types.NUnion{A: false}",
'value': canonicalize.reduce(new types.NUnion({ "a": false }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020000",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020000",
},
{
'name': "typeobject(any)",
'value': vdl.types.ANY,
'typeString': "typeobject",
'hex': "811c010f00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010f00",
},
{
'name': "true",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL),
'typeString': "bool",
'hex': "810201",
'hexVersion': "81",
'hexType': "",
'hexValue': "0201",
},
{
'name': "byte(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(1, true), vdl.types.BYTE),
'typeString': "byte",
'hex': "810401",
'hexVersion': "81",
'hexType': "",
'hexValue': "0401",
},
{
'name': "int16(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT16))(1, true), vdl.types.INT16),
'typeString': "int16",
'hex': "810e02",
'hexVersion': "81",
'hexType': "",
'hexValue': "0e02",
},
{
'name': "int32(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(1, true), vdl.types.INT32),
'typeString': "int32",
'hex': "811002",
'hexVersion': "81",
'hexType': "",
'hexValue': "1002",
},
{
'name': "int64(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x1])), true), vdl.types.INT64),
'typeString': "int64",
'hex': "811202",
'hexVersion': "81",
'hexType': "",
'hexValue': "1202",
},
{
'name': "uint16(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(1, true), vdl.types.UINT16),
'typeString': "uint16",
'hex': "810801",
'hexVersion': "81",
'hexType': "",
'hexValue': "0801",
},
{
'name': "uint32(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT32))(1, true), vdl.types.UINT32),
'typeString': "uint32",
'hex': "810a01",
'hexVersion': "81",
'hexType': "",
'hexValue': "0a01",
},
{
'name': "uint64(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT64))(new vdl.BigInt(1, new Uint8Array([0x1])), true), vdl.types.UINT64),
'typeString': "uint64",
'hex': "810c01",
'hexVersion': "81",
'hexType': "",
'hexValue': "0c01",
},
{
'name': "float32(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT32))(1, true), vdl.types.FLOAT32),
'typeString': "float32",
'hex': "8114fef03f",
'hexVersion': "81",
'hexType': "",
'hexValue': "14fef03f",
},
{
'name': "float64(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(1, true), vdl.types.FLOAT64),
'typeString': "float64",
'hex': "8116fef03f",
'hexVersion': "81",
'hexType': "",
'hexValue': "16fef03f",
},
{
'name': "complex64(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX64))(new vdl.Complex(1.000000, 0.000000), true), vdl.types.COMPLEX64),
'typeString': "complex64",
'hex': "811804fef03f00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1804fef03f00",
},
{
'name': "complex128(1)",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(1.000000, 0.000000), true), vdl.types.COMPLEX128),
'typeString': "complex128",
'hex': "811a04fef03f00",
'hexVersion': "81",
'hexType': "",
'hexValue': "1a04fef03f00",
},
{
'name': "\"A\"",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("A", true), vdl.types.STRING),
'typeString': "string",
'hex': "81060141",
'hexVersion': "81",
'hexType': "",
'hexValue': "060141",
},
{
'name': "[]byte(\"A\")",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
65,
]), true), _type2),
'typeString': "[]byte",
'hex': "814e0141",
'hexVersion': "81",
'hexType': "",
'hexValue': "4e0141",
},
{
'name': "types.FoodEnum.Cherry",
'value': types.FoodEnum.CHERRY,
'typeString': "v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry}",
'hex': "81513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e15202",
'hexVersion': "81",
'hexType': "513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1",
'hexValue': "5202",
},
{
'name': "types.NListUint64{1}",
'value': canonicalize.reduce(new types.NListUint64([
new vdl.BigInt(1, new Uint8Array([0x1])),
], true), new types.NListUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NListUint64 []uint64",
'hex': "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152020101",
'hexVersion': "81",
'hexType': "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1",
'hexValue': "52020101",
},
{
'name': "types.NByteArray(\"Abcd\")",
'value': canonicalize.reduce(new types.NByteArray(new Uint8Array([
65,
98,
99,
100,
]), true), new types.NByteArray()._type),
'typeString': "v.io/v23/vom/testdata/types.NByteArray [4]byte",
'hex': "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520041626364",
'hexVersion': "81",
'hexType': "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1",
'hexValue': "520041626364",
},
{
'name': "types.NArray2Uint64{0, 1}",
'value': canonicalize.reduce(new types.NArray2Uint64([
new vdl.BigInt(0, new Uint8Array([])),
new vdl.BigInt(1, new Uint8Array([0x1])),
], true), new types.NArray2Uint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64",
'hex': "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000001",
'hexVersion': "81",
'hexType': "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1",
'hexValue': "5203000001",
},
{
'name': "types.NSetUint64{1}",
'value': canonicalize.reduce(new types.NSetUint64(new Set([
new vdl.BigInt(1, new Uint8Array([0x1])), ]), true), new types.NSetUint64()._type),
'typeString': "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]",
'hex': "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152020101",
'hexVersion': "81",
'hexType': "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1",
'hexValue': "52020101",
},
{
'name': "types.NMapUint64String{1: \"A\"}",
'value': canonicalize.reduce(new types.NMapUint64String(new Map([
[new vdl.BigInt(1, new Uint8Array([0x1])), "A"]]), true), new types.NMapUint64String()._type),
'typeString': "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string",
'hex': "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1520401010141",
'hexVersion': "81",
'hexType': "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1",
'hexValue': "520401010141",
},
{
'name': "types.NStruct{A: true}",
'value': canonicalize.reduce(new types.NStruct({
'a': true,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.NStruct()._type),
'typeString': "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}",
'hex': "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152030001e1",
'hexVersion': "81",
'hexType': "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1",
'hexValue': "52030001e1",
},
{
'name': "types.NUnion{A: true}",
'value': canonicalize.reduce(new types.NUnion({ "a": true }, true), new types.NUnion()._type),
'typeString': "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}",
'hex': "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020001",
'hexVersion': "81",
'hexType': "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1",
'hexValue': "52020001",
},
{
'name': "typeobject(bool)",
'value': vdl.types.BOOL,
'typeString': "typeobject",
'hex': "811c010100",
'hexVersion': "81",
'hexType': "",
'hexValue': "1c010100",
},
{
'name': "types.StructManyTypes{Bool: true, AByte: 1, Int16: 1, Int32: 1, Int64: 1, Uint16: 1, Uint32: 1, Uint64: 1, String: \"A\", Bytes: \"A\", Float32: 1, Float64: 1, Complex64: 1, Complex128: 1, FoodEnum: types.FoodEnum.Cherry, NListUint64: {1}, NByteArray: \"Abcd\", NArray2Uint64: {0, 1}, NSetUint64: {1}, NMapUint64String: {1: \"A\"}, NStruct: {A: true}, NUnion: {A: true}, TypeObject: typeobject(bool)}",
'value': canonicalize.reduce(new types.StructManyTypes({
'bool': true,
'aByte': 1,
'int16': 1,
'int32': 1,
'int64': new vdl.BigInt(1, new Uint8Array([0x1])),
'uint16': 1,
'uint32': 1,
'uint64': new vdl.BigInt(1, new Uint8Array([0x1])),
'string': "A",
'bytes': new Uint8Array([
65,
]),
'float32': 1,
'float64': 1,
'complex64': new vdl.Complex(1.000000, 0.000000),
'complex128': new vdl.Complex(1.000000, 0.000000),
'foodEnum': 'Cherry',
'nEnum': 'A',
'nListUint64': [
new vdl.BigInt(1, new Uint8Array([0x1])),
],
'nByteArray': new Uint8Array([
65,
98,
99,
100,
]),
'nArray2Uint64': [
new vdl.BigInt(0, new Uint8Array([])),
new vdl.BigInt(1, new Uint8Array([0x1])),
],
'nSetUint64': new Set([
new vdl.BigInt(1, new Uint8Array([0x1])), ]),
'nMapUint64String': new Map([
[new vdl.BigInt(1, new Uint8Array([0x1])), "A"]]),
'nStruct': {
'a': true,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
},
'nUnion': { "a": true },
'typeObject': vdl.types.BOOL,
}, true), new types.StructManyTypes()._type),
'typeString': "v.io/v23/vom/testdata/types.StructManyTypes struct{Bool bool;AByte byte;Int16 int16;Int32 int32;Int64 int64;Uint16 uint16;Uint32 uint32;Uint64 uint64;String string;Bytes []byte;Float32 float32;Float64 float64;Complex64 complex64;Complex128 complex128;FoodEnum v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry};NEnum v.io/v23/vom/testdata/types.NEnum enum{A;B;C};NListUint64 v.io/v23/vom/testdata/types.NListUint64 []uint64;NByteArray v.io/v23/vom/testdata/types.NByteArray [4]byte;NArray2Uint64 v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64;NSetUint64 v.io/v23/vom/testdata/types.NSetUint64 set[uint64];NMapUint64String v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string;NStruct v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};NUnion v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64};TypeObject typeobject}",
'hex': "81533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe015f06002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301180004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10009436f6d706c65783634010ce1000a436f6d706c6578313238010de10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e152010149000101010202030204020501060107010801410901410afef03f0bfef03f0cfef03f000dfef03f000e02100101110041626364120000011301011401010141150001e11600011700e1",
'hexVersion': "81",
'hexType': "533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe015f06002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301180004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10009436f6d706c65783634010ce1000a436f6d706c6578313238010de10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e1",
'hexValue': "52010149000101010202030204020501060107010801410901410afef03f0bfef03f0cfef03f000dfef03f000e02100101110041626364120000011301011401010141150001e11600011700e1",
},
{
'name': "types.AnySlice{types.NInt16(1), types.NInt32(2), types.NInt64(3), types.NInt32(4)}",
'value': canonicalize.reduce(new types.AnySlice([
canonicalize.reduce(new types.NInt16(1, true), new types.NInt16()._type),
canonicalize.reduce(new types.NInt32(2, true), new types.NInt32()._type),
canonicalize.reduce(new types.NInt64(new vdl.BigInt(1, new Uint8Array([0x3])), true), new types.NInt64()._type),
canonicalize.reduce(new types.NInt32(4, true), new types.NInt32()._type),
], true), new types.AnySlice()._type),
'typeString': "v.io/v23/vom/testdata/types.AnySlice []any",
'hex': "81512a030024762e696f2f7632332f766f6d2f74657374646174612f74797065732e416e79536c696365010fe15328000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152032a2b2c09040002010402060108",
'hexVersion': "81",
'hexType': "512a030024762e696f2f7632332f766f6d2f74657374646174612f74797065732e416e79536c696365010fe15328000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "52032a2b2c09040002010402060108",
},
{
'name': "[]types.StructAny{{Any: types.NInt16(1)}, {Any: types.NInt32(2)}, {Any: types.NInt64(3)}, {Any: types.NInt32(4)}}",
'value': canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type9))([
{
'any': canonicalize.reduce(new types.NInt16(1, true), new types.NInt16()._type),
},
{
'any': canonicalize.reduce(new types.NInt32(2, true), new types.NInt32()._type),
},
{
'any': canonicalize.reduce(new types.NInt64(new vdl.BigInt(1, new Uint8Array([0x3])), true), new types.NInt64()._type),
},
{
'any': canonicalize.reduce(new types.NInt32(4, true), new types.NInt32()._type),
},
], true), _type9),
'typeString': "[]v.io/v23/vom/testdata/types.StructAny struct{Any any}",
'hex': "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510403012ae15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15928000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152032b2c2d1104000002e1000104e1000206e1000108e1",
'hexVersion': "81",
'hexType': "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510403012ae15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15928000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1",
'hexValue': "52032b2c2d1104000002e1000104e1000206e1000108e1",
},
], true), _type1);
module.exports.CompatTests = canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type10))(new Map([
["bool", [
vdl.types.BOOL,
new types.NBool()._type,
new types.MBool()._type,
]],
["map[X]bool/set[X]", [
new types.SetOnlyMap()._type,
new types.MapOnlySet()._type,
new types.SometimesSetMap()._type,
]],
["map[string]X/struct", [
new types.MapOnlyStruct()._type,
new types.StructOnlyMap()._type,
]],
["map[string]bool/set[string]/struct", [
new types.MapSetStruct()._type,
new types.SetStructMap()._type,
new types.MapStructSet()._type,
]],
["number list/array", [
_type11,
new types.NArray2Uint64()._type,
new types.NListUint64()._type,
]],
["number", [
vdl.types.UINT16,
vdl.types.UINT32,
vdl.types.UINT64,
vdl.types.INT16,
vdl.types.INT32,
vdl.types.INT64,
vdl.types.FLOAT32,
vdl.types.FLOAT64,
vdl.types.COMPLEX64,
vdl.types.COMPLEX128,
new types.NUint16()._type,
new types.NUint32()._type,
new types.NUint64()._type,
new types.NInt16()._type,
new types.NInt32()._type,
new types.NInt64()._type,
new types.NFloat32()._type,
new types.NFloat64()._type,
new types.NComplex64()._type,
new types.NComplex128()._type,
]],
["string list/array", [
_type12,
new types.ListString()._type,
new types.Array3String()._type,
new types.Array4String()._type,
]],
["string/[]byte/enum", [
vdl.types.STRING,
new types.NString()._type,
_type2,
new types.NByteSlice()._type,
new types.NByteArray()._type,
types.NEnum.A._type,
]],
["struct A", [
new types.NStruct()._type,
new types.AbcStruct()._type,
new types.AdeStruct()._type,
]],
["struct Z", [
new types.XyzStruct()._type,
new types.YzStruct()._type,
new types.ZStruct()._type,
]],
["typeobject", [
vdl.types.TYPEOBJECT,
]],
["union B", [
new types.NUnion()._type,
new types.BdeUnion()._type,
]]]), true), _type10);
module.exports.ConvertTests = canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type13))(new Map([
["array/list", [
{
'name': "[3]string",
'primaryType': new types.Array3String()._type,
'values': [
canonicalize.reduce(new types.Array3String([
"A",
"B",
"C",
], true), new types.Array3String()._type),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type12))([
"A",
"B",
"C",
], true), _type12),
],
},
{
'name': "[4]string",
'primaryType': new types.Array4String()._type,
'values': [
canonicalize.reduce(new types.Array4String([
"D",
"E",
"F",
"G",
], true), new types.Array4String()._type),
],
},
{
'name': "ByteArray",
'primaryType': new types.NByteArray()._type,
'values': [
canonicalize.reduce(new types.NByteArray(new Uint8Array([
5,
2,
0,
4,
]), true), new types.NByteArray()._type),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
5,
2,
0,
4,
]), true), _type2),
],
},
]],
["bool", [
{
'name': "bool",
'primaryType': vdl.types.BOOL,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL),
canonicalize.reduce(new types.NBool(true, true), new types.NBool()._type),
canonicalize.reduce(new types.MBool(true, true), new types.MBool()._type),
],
},
]],
["number", [
{
'name': "byte",
'primaryType': vdl.types.BYTE,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BYTE))(3, true), vdl.types.BYTE),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(3, true), vdl.types.UINT16),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(3, true), vdl.types.INT32),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(3, true), vdl.types.FLOAT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x3])), true), vdl.types.INT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(3.000000, 0.000000), true), vdl.types.COMPLEX128),
],
},
{
'name': "uint16",
'primaryType': vdl.types.UINT16,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.UINT16))(256, true), vdl.types.UINT16),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(256, true), vdl.types.INT32),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(256, true), vdl.types.FLOAT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(1, new Uint8Array([0x1, 0x0])), true), vdl.types.INT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(256.000000, 0.000000), true), vdl.types.COMPLEX128),
],
},
{
'name': "int32",
'primaryType': vdl.types.INT32,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT32))(-5, true), vdl.types.INT32),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(-5, true), vdl.types.FLOAT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x5])), true), vdl.types.INT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(-5.000000, 0.000000), true), vdl.types.COMPLEX128),
],
},
{
'name': "float64",
'primaryType': vdl.types.FLOAT64,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.FLOAT64))(3.3, true), vdl.types.FLOAT64),
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(3.300000, 0.000000), true), vdl.types.COMPLEX128),
],
},
{
'name': "int64",
'primaryType': vdl.types.INT64,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.INT64))(new vdl.BigInt(-1, new Uint8Array([0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0])), true), vdl.types.INT64),
],
},
{
'name': "complex128",
'primaryType': vdl.types.COMPLEX128,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.COMPLEX128))(new vdl.Complex(1.500000, -1.000000), true), vdl.types.COMPLEX128),
],
},
]],
["string, []byte, [n]byte, and enum", [
{
'name': "enum (A)",
'primaryType': types.NEnum.A._type,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("A", true), vdl.types.STRING),
canonicalize.reduce(new types.NString("A", true), new types.NString()._type),
types.NEnum.A,
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
65,
]), true), _type2),
],
},
{
'name': "enum (brie)",
'primaryType': types.BrieEnum.GLEE._type,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("Brie", true), vdl.types.STRING),
canonicalize.reduce(new types.NString("Brie", true), new types.NString()._type),
types.BrieEnum.BRIE,
types.FoodEnum.BRIE,
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
66,
114,
105,
101,
]), true), _type2),
canonicalize.reduce(new types.NByteArray(new Uint8Array([
66,
114,
105,
101,
]), true), new types.NByteArray()._type),
],
},
{
'name': "[4]byte",
'primaryType': new types.NByteArray()._type,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("Bean", true), vdl.types.STRING),
canonicalize.reduce(new types.NString("Bean", true), new types.NString()._type),
types.BeanEnum.BEAN,
types.FoodEnum.BEAN,
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
66,
101,
97,
110,
]), true), _type2),
canonicalize.reduce(new types.NByteArray(new Uint8Array([
66,
101,
97,
110,
]), true), new types.NByteArray()._type),
],
},
{
'name': "string",
'primaryType': new types.NString()._type,
'values': [
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("Cherry", true), vdl.types.STRING),
canonicalize.reduce(new types.NString("Cherry", true), new types.NString()._type),
types.FoodEnum.CHERRY,
canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(_type2))(new Uint8Array([
67,
104,
101,
114,
114,
121,
]), true), _type2),
canonicalize.reduce(new types.NByteSlice(new Uint8Array([
67,
104,
101,
114,
114,
121,
]), true), new types.NByteSlice()._type),
],
},
]],
["struct, map, and set", [
{
'name': "map[uint32]uint32",
'primaryType': new types.MapOnlyA()._type,
'values': [
canonicalize.reduce(new types.MapOnlyA(new Map([
[4, 0],
[6, 7]]), true), new types.MapOnlyA()._type),
canonicalize.reduce(new types.MapOnlyA2(new Map([
[new vdl.BigInt(1, new Uint8Array([0x4])), 0],
[new vdl.BigInt(1, new Uint8Array([0x6])), 7]]), true), new types.MapOnlyA2()._type),
],
},
{
'name': "map[bool]string",
'primaryType': new types.MapOnlyB()._type,
'values': [
canonicalize.reduce(new types.MapOnlyB(new Map([
[true, "hello"]]), true), new types.MapOnlyB()._type),
canonicalize.reduce(new types.MapOnlyB2(new Map([
[true, "hello"]]), true), new types.MapOnlyB2()._type),
],
},
{
'name': "set[bool]",
'primaryType': new types.SetOnlyA()._type,
'values': [
canonicalize.reduce(new types.SetOnlyA(new Set([
false,
true, ]), true), new types.SetOnlyA()._type),
canonicalize.reduce(new types.SetOnlyA2(new Set([
false,
true, ]), true), new types.SetOnlyA2()._type),
],
},
{
'name': "set[int16]",
'primaryType': new types.SetOnlyB()._type,
'values': [
canonicalize.reduce(new types.SetOnlyB(new Set([
4,
6, ]), true), new types.SetOnlyB()._type),
canonicalize.reduce(new types.SetOnlyB2(new Set([
4,
6, ]), true), new types.SetOnlyB2()._type),
],
},
{
'name': "structABC",
'primaryType': new types.AbcStruct()._type,
'values': [
canonicalize.reduce(new types.AbcStruct({
'a': true,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.AbcStruct()._type),
canonicalize.reduce(new types.AdeStruct({
'a': true,
'd': null,
'e': vdl.types.ANY,
}, true), new types.AdeStruct()._type),
canonicalize.reduce(new types.NStruct({
'a': true,
'b': "",
'c': new vdl.BigInt(0, new Uint8Array([])),
}, true), new types.NStruct()._type),
],
},
{
'name': "structYz",
'primaryType': new types.YzStruct()._type,
'values': [
canonicalize.reduce(new types.XyzStruct({
'x': false,
'y': false,
'z': "ahoy",
}, true), new types.XyzStruct()._type),
canonicalize.reduce(new types.YzStruct({
'y': false,
'z': "ahoy",
}, true), new types.YzStruct()._type),
canonicalize.reduce(new types.ZStruct({
'z': "ahoy",
}, true), new types.ZStruct()._type),
],
},
{
'name': "struct+map",
'primaryType': new types.MapOnlyStruct()._type,
'values': [
canonicalize.reduce(new types.StructOnlyMap(new Map([
["Key1", new vdl.BigInt(1, new Uint8Array([0x4]))],
["Key2", new vdl.BigInt(1, new Uint8Array([0x5]))],
["Key3", new vdl.BigInt(0, new Uint8Array([]))]]), true), new types.StructOnlyMap()._type),
canonicalize.reduce(new types.MapOnlyStruct({
'key1': new vdl.BigInt(1, new Uint8Array([0x4])),
'key2': 5,
'key3': new vdl.Complex(0.000000, 0.000000),
}, true), new types.MapOnlyStruct()._type),
],
},
{
'name': "map+set",
'primaryType': new types.MapOnlySet()._type,
'values': [
canonicalize.reduce(new types.MapOnlySet(new Set([
3.14,
8, ]), true), new types.MapOnlySet()._type),
canonicalize.reduce(new types.SometimesSetMap(new Map([
[3.14, canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL)],
[8, canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL)]]), true), new types.SometimesSetMap()._type),
canonicalize.reduce(new types.SetOnlyMap(new Map([
[3.14, true],
[8, true]]), true), new types.SetOnlyMap()._type),
],
},
{
'name': "map-set",
'primaryType': new types.SetOnlyMap()._type,
'values': [
canonicalize.reduce(new types.SometimesSetMap(new Map([
[3.14, canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.STRING))("cannot be a set anymore", true), vdl.types.STRING)],
[8, canonicalize.reduce(new (vdl.registry.lookupOrCreateConstructor(vdl.types.BOOL))(true, true), vdl.types.BOOL)]]), true), new types.SometimesSetMap()._type),
],
},
{
'name': "struct+map+set",
'primaryType': new types.MapStructSet()._type,
'values': [
canonicalize.reduce(new types.MapStructSet(new Set([
"Eel",
"Feat",
"Tire", ]), true), new types.MapStructSet()._type),
canonicalize.reduce(new types.SetStructMap(new Map([
["Eel", true],
["Feat", true],
["Tire", true]]), true), new types.SetStructMap()._type),
canonicalize.reduce(new types.MapSetStruct({
'feat': true,
'tire': true,
'eel': true,
}, true), new types.MapSetStruct()._type),
],
},
]],
["typeobject", [
{
'name': "typeobject(any)",
'primaryType': vdl.types.TYPEOBJECT,
'values': [
vdl.types.ANY,
],
},
]],
["union", [
{
'name': "BdeUnion",
'primaryType': new types.BdeUnion()._type,
'values': [
canonicalize.reduce(new types.BdeUnion({ "b": "bde" }, true), new types.BdeUnion()._type),
canonicalize.reduce(new types.NUnion({ "b": "bde" }, true), new types.NUnion()._type),
],
},
{
'name': "BdeUnion fail",
'primaryType': new types.NUnion()._type,
'values': [
canonicalize.reduce(new types.NUnion({ "a": true }, true), new types.NUnion()._type),
],
},
]]]), true), _type13);
// Errors:
// Services: