Lines Matching refs:Kernel
11 const Kernel = goog.require('protobuf.runtime.Kernel'); constant
29 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
34 const accessor = Kernel.fromArrayBuffer(
43 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
48 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0), 50);
55 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
61 const accessor = Kernel.fromArrayBuffer(bytes);
66 const accessor = Kernel.createEmpty();
72 const accessor = Kernel.createEmpty();
78 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
87 const accessor = Kernel.createEmpty();
98 const accessor = Kernel.fromArrayBuffer(bytes);
108 const accessor = Kernel.fromArrayBuffer(bytes);
118 const accessor = Kernel.createEmpty();
133 const accessor = Kernel.fromArrayBuffer(bytes);
147 const accessor = Kernel.fromArrayBuffer(bytes);
161 const accessor = Kernel.createEmpty();
173 const accessor = Kernel.createEmpty();
187 const accessor = Kernel.createEmpty();
201 const accessor = Kernel.createEmpty();
216 const accessor = Kernel.fromArrayBuffer(bytes, /* pivot= */ 1);
228 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
236 const accessor = Kernel.fromArrayBuffer(bytes);
244 const accessor = Kernel.fromArrayBuffer(bytes);
250 const accessor = Kernel.fromArrayBuffer(bytes);
258 const accessor = Kernel.fromArrayBuffer(bytes);
266 const accessor = Kernel.fromArrayBuffer(bytes);
272 const accessor = Kernel.fromArrayBuffer(bytes);
279 const accessor = Kernel.fromArrayBuffer(bytes);
288 const accessor = Kernel.fromArrayBuffer(bytes);
296 const accessor = Kernel.fromArrayBuffer(bytes);
308 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
326 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
341 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
362 const accessor = Kernel.fromArrayBuffer(bytes);
369 const accessor = Kernel.fromArrayBuffer(bytes, /* pivot= */ 0);
376 const accessor = Kernel.fromArrayBuffer(bytes);
382 const accessor = Kernel.fromArrayBuffer(bytes);
390 const accessor = Kernel.fromArrayBuffer(bytes);
399 const accessor = Kernel.fromArrayBuffer(bytes);
407 const accessor = Kernel.fromArrayBuffer(bytes);
414 const accessor = Kernel.fromArrayBuffer(bytes);
421 const accessor = Kernel.fromArrayBuffer(bytes);
428 const accessor = Kernel.fromArrayBuffer(bytes);
439 const accessor = Kernel.fromArrayBuffer(bytes);
459 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
460 const subaccessor = Kernel.fromArrayBuffer(bytes);
468 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
469 const subaccessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
471 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
481 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
482 const subaccessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
484 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
486 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x02));
503 const accessor = Kernel.createEmpty();
512 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
522 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
533 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
552 const accessor = Kernel.createEmpty();
560 const accessor = Kernel.createEmpty();
569 const accessor = Kernel.createEmpty();
579 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
590 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
610 const accessor = Kernel.fromArrayBuffer(bytes);
618 const accessor = Kernel.fromArrayBuffer(bytes);
625 const accessor = Kernel.fromArrayBuffer(bytes);
634 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
641 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x01, 0x08));
648 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x01, 0x08));
655 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x02, 0x08, 0x01));
662 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
684 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
691 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
698 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x01, 0x01));
703 const accessor = Kernel.fromArrayBuffer(
709 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
729 () => Kernel.createEmpty().getBytesWithDefault(-1, simpleByteString))
732 expect(Kernel.createEmpty().getBytesWithDefault(-1, simpleByteString))
739 const accessor = Kernel.fromArrayBuffer(bytes);
746 const accessor = Kernel.fromArrayBuffer(bytes);
754 const accessor = Kernel.fromArrayBuffer(bytes);
763 expect(() => Kernel.createEmpty().setBytes(-1, simpleByteString))
766 const accessor = Kernel.createEmpty();
775 () => Kernel.createEmpty().setBytes(
779 const accessor = Kernel.createEmpty();
789 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
794 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
800 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00));
805 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
812 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x80, 0x80, 0x80, 0x00));
828 expect(() => Kernel.createEmpty().getFixed32WithDefault(-1, 1))
831 expect(Kernel.createEmpty().getFixed32WithDefault(-1, 1)).toEqual(1);
837 const accessor = Kernel.fromArrayBuffer(bytes);
844 const accessor = Kernel.fromArrayBuffer(bytes);
852 const accessor = Kernel.fromArrayBuffer(bytes);
861 expect(() => Kernel.createEmpty().setFixed32(-1, 1))
864 const accessor = Kernel.createEmpty();
873 () => Kernel.createEmpty().setFixed32(
877 const accessor = Kernel.createEmpty();
885 expect(() => Kernel.createEmpty().setFixed32(1, -1)).toThrow();
887 const accessor = Kernel.createEmpty();
896 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
901 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
907 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
913 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
921 const accessor = Kernel.fromArrayBuffer(
933 Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
936 expect(Kernel.createEmpty().getFixed64WithDefault(-1, Int64.fromInt(1)))
944 const accessor = Kernel.fromArrayBuffer(bytes);
952 const accessor = Kernel.fromArrayBuffer(bytes);
962 const accessor = Kernel.fromArrayBuffer(bytes);
971 expect(() => Kernel.createEmpty().setFixed64(-1, Int64.fromInt(1)))
974 const accessor = Kernel.createEmpty();
983 () => Kernel.createEmpty().setSfixed64(
987 const accessor = Kernel.createEmpty();
996 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1001 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1007 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x80, 0x3F));
1012 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
1019 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
1030 expect(() => Kernel.createEmpty().getFloatWithDefault(-1, 1))
1033 expect(Kernel.createEmpty().getFloatWithDefault(-1, 1)).toEqual(1);
1039 const accessor = Kernel.fromArrayBuffer(bytes);
1046 const accessor = Kernel.fromArrayBuffer(bytes);
1054 const accessor = Kernel.fromArrayBuffer(bytes);
1063 expect(() => Kernel.createEmpty().setFloat(-1, 1))
1066 const accessor = Kernel.createEmpty();
1075 () => Kernel.createEmpty().setFloat(
1079 const accessor = Kernel.createEmpty();
1087 expect(() => Kernel.createEmpty().setFloat(1, Number.MAX_VALUE))
1090 const accessor = Kernel.createEmpty();
1099 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1104 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1109 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
1115 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01, 0x08, 0x02));
1121 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1137 expect(() => Kernel.createEmpty().getInt32WithDefault(-1, 1))
1140 expect(Kernel.createEmpty().getInt32WithDefault(-1, 1)).toEqual(1);
1146 const accessor = Kernel.fromArrayBuffer(bytes);
1153 const accessor = Kernel.fromArrayBuffer(bytes);
1161 const accessor = Kernel.fromArrayBuffer(bytes);
1170 expect(() => Kernel.createEmpty().setInt32(-1, 1))
1173 const accessor = Kernel.createEmpty();
1182 () => Kernel.createEmpty().setInt32(
1186 const accessor = Kernel.createEmpty();
1195 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1200 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1206 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
1212 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01, 0x08, 0x02));
1218 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1235 () => Kernel.createEmpty().getInt64WithDefault(-1, Int64.fromInt(1)))
1238 expect(Kernel.createEmpty().getInt64WithDefault(-1, Int64.fromInt(1)))
1245 const accessor = Kernel.fromArrayBuffer(bytes);
1252 const accessor = Kernel.fromArrayBuffer(bytes);
1260 const accessor = Kernel.fromArrayBuffer(bytes);
1269 expect(() => Kernel.createEmpty().setInt64(-1, Int64.fromInt(1)))
1272 const accessor = Kernel.createEmpty();
1281 () => Kernel.createEmpty().setInt64(
1285 const accessor = Kernel.createEmpty();
1294 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1299 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1305 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x01, 0x00, 0x00, 0x00));
1310 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
1317 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x80, 0x80, 0x80, 0x00));
1333 expect(() => Kernel.createEmpty().getSfixed32WithDefault(-1, 1))
1336 expect(Kernel.createEmpty().getSfixed32WithDefault(-1, 1)).toEqual(1);
1342 const accessor = Kernel.fromArrayBuffer(bytes);
1349 const accessor = Kernel.fromArrayBuffer(bytes);
1357 const accessor = Kernel.fromArrayBuffer(bytes);
1366 expect(() => Kernel.createEmpty().setSfixed32(-1, 1))
1369 const accessor = Kernel.createEmpty();
1378 () => Kernel.createEmpty().setSfixed32(
1382 const accessor = Kernel.createEmpty();
1391 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1396 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1402 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
1408 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
1416 const accessor = Kernel.fromArrayBuffer(
1428 Kernel.createEmpty().getSfixed64WithDefault(-1, Int64.fromInt(1)))
1431 expect(Kernel.createEmpty().getSfixed64WithDefault(-1, Int64.fromInt(1)))
1439 const accessor = Kernel.fromArrayBuffer(bytes);
1447 const accessor = Kernel.fromArrayBuffer(bytes);
1457 const accessor = Kernel.fromArrayBuffer(bytes);
1466 expect(() => Kernel.createEmpty().setSfixed64(-1, Int64.fromInt(1)))
1469 const accessor = Kernel.createEmpty();
1478 () => Kernel.createEmpty().setSfixed64(
1482 const accessor = Kernel.createEmpty();
1491 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1496 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1501 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x02));
1507 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x03, 0x08, 0x02));
1513 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1529 expect(() => Kernel.createEmpty().getSint32WithDefault(-1, 1))
1532 expect(Kernel.createEmpty().getSint32WithDefault(-1, 1)).toEqual(1);
1538 const accessor = Kernel.fromArrayBuffer(bytes);
1545 const accessor = Kernel.fromArrayBuffer(bytes);
1553 const accessor = Kernel.fromArrayBuffer(bytes);
1562 expect(() => Kernel.createEmpty().setSint32(-1, 1))
1565 const accessor = Kernel.createEmpty();
1574 () => Kernel.createEmpty().setSint32(
1578 const accessor = Kernel.createEmpty();
1587 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1592 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1598 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x02));
1604 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01, 0x08, 0x02));
1610 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1627 () => Kernel.createEmpty().getSint64WithDefault(-1, Int64.fromInt(1)))
1630 expect(Kernel.createEmpty().getSint64WithDefault(-1, Int64.fromInt(1)))
1637 const accessor = Kernel.fromArrayBuffer(bytes);
1644 const accessor = Kernel.fromArrayBuffer(bytes);
1652 const accessor = Kernel.fromArrayBuffer(bytes);
1661 expect(() => Kernel.createEmpty().setSint64(-1, Int64.fromInt(1)))
1664 const accessor = Kernel.createEmpty();
1673 () => Kernel.createEmpty().setSint64(
1677 const accessor = Kernel.createEmpty();
1686 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1691 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1697 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x01, 0x61));
1702 const accessor = Kernel.fromArrayBuffer(
1710 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x02, 0x08, 0x08));
1720 expect(() => Kernel.createEmpty().getStringWithDefault(-1, 'a'))
1723 expect(Kernel.createEmpty().getStringWithDefault(-1, 'a')).toEqual('a');
1729 const accessor = Kernel.fromArrayBuffer(bytes);
1736 const accessor = Kernel.fromArrayBuffer(bytes);
1744 const accessor = Kernel.fromArrayBuffer(bytes);
1753 expect(() => Kernel.createEmpty().setString(-1, 'a'))
1756 const accessor = Kernel.createEmpty();
1765 () => Kernel.createEmpty().setString(
1769 const accessor = Kernel.createEmpty();
1778 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1783 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1788 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
1794 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01, 0x08, 0x02));
1800 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1816 expect(() => Kernel.createEmpty().getUint32WithDefault(-1, 1))
1819 expect(Kernel.createEmpty().getUint32WithDefault(-1, 1)).toEqual(1);
1825 const accessor = Kernel.fromArrayBuffer(bytes);
1832 const accessor = Kernel.fromArrayBuffer(bytes);
1840 const accessor = Kernel.fromArrayBuffer(bytes);
1849 expect(() => Kernel.createEmpty().setInt32(-1, 1))
1852 const accessor = Kernel.createEmpty();
1861 () => Kernel.createEmpty().setUint32(
1865 const accessor = Kernel.createEmpty();
1873 expect(() => Kernel.createEmpty().setUint32(1, -1)).toThrow();
1875 const accessor = Kernel.createEmpty();
1884 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1889 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1895 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
1901 Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01, 0x08, 0x02));
1907 Kernel.fromArrayBuffer(createArrayBuffer(0x0D, 0x00, 0x00, 0x00, 0x00));
1924 () => Kernel.createEmpty().getUint64WithDefault(-1, Int64.fromInt(1)))
1927 expect(Kernel.createEmpty().getUint64WithDefault(-1, Int64.fromInt(1)))
1934 const accessor = Kernel.fromArrayBuffer(bytes);
1941 const accessor = Kernel.fromArrayBuffer(bytes);
1949 const accessor = Kernel.fromArrayBuffer(bytes);
1958 expect(() => Kernel.createEmpty().setUint64(-1, Int64.fromInt(1)))
1961 const accessor = Kernel.createEmpty();
1970 () => Kernel.createEmpty().setUint64(
1974 const accessor = Kernel.createEmpty();
1983 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1988 const accessor = Kernel.fromArrayBuffer(createArrayBuffer());
1993 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
2000 const accessor = Kernel.fromArrayBuffer(createArrayBuffer(
2008 const accessor = Kernel.fromArrayBuffer(
2019 expect(() => Kernel.createEmpty().getDoubleWithDefault(-1, 1))
2022 expect(Kernel.createEmpty().getDoubleWithDefault(-1, 1)).toEqual(1);
2029 const accessor = Kernel.fromArrayBuffer(bytes);
2037 const accessor = Kernel.fromArrayBuffer(bytes);
2047 const accessor = Kernel.fromArrayBuffer(bytes);
2056 expect(() => Kernel.createEmpty().setDouble(-1, 1))
2059 const accessor = Kernel.createEmpty();
2068 () => Kernel.createEmpty().setDouble(
2072 const accessor = Kernel.createEmpty();
2082 const accessor = Kernel.fromArrayBuffer(bytes);
2089 const accessor = Kernel.fromArrayBuffer(bytes);
2096 const accessor = Kernel.fromArrayBuffer(bytes);
2102 const accessor = Kernel.fromArrayBuffer(bytes);
2110 const accessor = Kernel.fromArrayBuffer(bytes);
2118 const accessor = Kernel.fromArrayBuffer(bytes);
2127 const accessor = Kernel.fromArrayBuffer(bytes);
2135 const accessor = Kernel.fromArrayBuffer(bytes);
2142 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
2143 const subaccessor = Kernel.fromArrayBuffer(bytes);
2151 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
2152 const subaccessor = Kernel.fromArrayBuffer(createArrayBuffer(0x08, 0x01));
2160 const accessor = Kernel.createEmpty();
2168 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
2178 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
2189 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
2208 const accessor = Kernel.createEmpty();
2216 const accessor = Kernel.createEmpty();
2225 const accessor = Kernel.createEmpty();
2235 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
2246 const accessor = Kernel.fromArrayBuffer(intTwoBytes);
2266 const accessor = Kernel.fromArrayBuffer(bytes);
2274 const accessor = Kernel.fromArrayBuffer(bytes);
2280 const accessor = Kernel.fromArrayBuffer(bytes);
2290 Kernel.fromArrayBuffer(createArrayBuffer(0x0A, 0x02, 0x08, 0x01));
2297 const accessor = Kernel.fromArrayBuffer(new ArrayBuffer(0));
2324 const accessor = Kernel.fromArrayBuffer(bytes);