Home
last modified time | relevance | path

Searched refs:BYTES (Results 1 - 25 of 60) sorted by relevance

123

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DNioByteStringTest.java55 private static final byte[] BYTES = ByteStringTest.getTestBytes(1234, 11337766L); field in NioByteStringTest
56 private static final int EXPECTED_HASH = ByteString.wrap(BYTES).hashCode();
58 private final ByteBuffer backingBuffer = ByteBuffer.wrap(BYTES.clone());
74 for (int i = 0; stillEqual && i < BYTES.length; ++i) { in testByteAt()
75 stillEqual = (BYTES[i] == testString.byteAt(i)); in testByteAt()
83 for (int i = 0; stillEqual && i < BYTES.length; ++i) { in testByteIterator()
84 stillEqual = (iter.hasNext() && BYTES[i] == iter.nextByte()); in testByteIterator()
101 stillEqual = (BYTES[j] == quantum); in testByteIterable()
105 assertEquals(CLASSNAME + " iterable character count", BYTES.length, j); in testByteIterable()
109 assertEquals(CLASSNAME + " must have the expected size", BYTES in testSize()
[all...]
/third_party/protobuf/js/binary/
H A Dproto_test.js97 var BYTES = new Uint8Array([1, 2, 8, 9]);
99 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
123 msg.setOptionalBytes(BYTES);
147 msg.setRepeatedBytesList([BYTES, BYTES]);
215 assertEquals(true, bytesCompare(copy.getOptionalBytes(), BYTES));
216 assertEquals(true, bytesCompare(copy.getOptionalBytes_asU8(), BYTES));
218 copy.getOptionalBytes_asB64(), goog.crypt.base64.encodeByteArray(BYTES));
245 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[0], BYTES));
246 assertEquals(true, bytesCompare(copy.getRepeatedBytesList()[0], BYTES));
[all...]
H A Dconstants.js200 BYTES: 12,
258 case fieldTypes.BYTES:
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Dproto_test.js93 var BYTES = new Uint8Array([1, 2, 8, 9]);
95 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
119 msg.setOptionalBytes(BYTES);
143 msg.setRepeatedBytesList([BYTES, BYTES]);
213 assertEquals(true, bytesCompare(copy.getOptionalBytes(), BYTES));
214 assertEquals(true, bytesCompare(copy.getOptionalBytes_asU8(), BYTES));
216 copy.getOptionalBytes_asB64(), goog.crypt.base64.encodeByteArray(BYTES));
243 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[0], BYTES));
244 assertEquals(true, bytesCompare(copy.getRepeatedBytesList()[0], BYTES));
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Dproto_test.js93 var BYTES = new Uint8Array([1, 2, 8, 9]);
95 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
119 msg.setOptionalBytes(BYTES);
143 msg.setRepeatedBytesList([BYTES, BYTES]);
213 assertEquals(true, bytesCompare(copy.getOptionalBytes(), BYTES));
214 assertEquals(true, bytesCompare(copy.getOptionalBytes_asU8(), BYTES));
216 copy.getOptionalBytes_asB64(), goog.crypt.base64.encodeByteArray(BYTES));
243 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[0], BYTES));
244 assertEquals(true, bytesCompare(copy.getRepeatedBytesList()[0], BYTES));
[all...]
/third_party/protobuf/js/
H A Dproto3_test.js46 var BYTES = new Uint8Array([1, 2, 8, 9]);
47 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
244 msg.setSingularBytes(BYTES);
264 msg.setRepeatedBytesList([BYTES]);
289 assertEquals(true, bytesCompare(msg.getSingularBytes(), BYTES));
309 assertEquals(true, bytesCompare(msg.getRepeatedBytesList()[0], BYTES));
425 assertTrue(bytesCompare(msg.getSingularBytes_asU8(), BYTES));
426 assertTrue(bytesCompare(msg.getSingularBytes_asB64(), BYTES));
427 assertTrue(bytesCompare(msg.getSingularBytes(), BYTES));
431 assertTrue(bytesCompare(msg.getSingularBytes_asU8(), BYTES));
[all...]
/third_party/protobuf/js/compatibility_tests/v3.0.0/
H A Dproto3_test.js42 var BYTES = new Uint8Array([1, 2, 8, 9]);
43 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
143 msg.setOptionalBytes(BYTES);
163 msg.setRepeatedBytesList([BYTES]);
188 assertEquals(true, bytesCompare(msg.getOptionalBytes(), BYTES));
208 assertEquals(true, bytesCompare(msg.getRepeatedBytesList()[0], BYTES));
311 assertTrue(bytesCompare(msg.getOptionalBytes_asU8(), BYTES));
312 assertTrue(bytesCompare(msg.getOptionalBytes_asB64(), BYTES));
313 assertTrue(bytesCompare(msg.getOptionalBytes(), BYTES));
317 assertTrue(bytesCompare(msg.getOptionalBytes_asU8(), BYTES));
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/
H A Dproto3_test.js42 var BYTES = new Uint8Array([1, 2, 8, 9]);
43 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES);
143 msg.setOptionalBytes(BYTES);
163 msg.setRepeatedBytesList([BYTES]);
188 assertEquals(true, bytesCompare(msg.getOptionalBytes(), BYTES));
208 assertEquals(true, bytesCompare(msg.getRepeatedBytesList()[0], BYTES));
311 assertTrue(bytesCompare(msg.getOptionalBytes_asU8(), BYTES));
312 assertTrue(bytesCompare(msg.getOptionalBytes_asB64(), BYTES));
313 assertTrue(bytesCompare(msg.getOptionalBytes(), BYTES));
317 assertTrue(bytesCompare(msg.getOptionalBytes_asU8(), BYTES));
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DTrieMapTest.java134 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet()
162 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration()
216 checkContents(unicodeTestMap, Style.BYTES); in TestContents()
254 checkSearch(Style.BYTES); in TestSearch()
305 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.SMALL, 20); in TestTimeBuilding()
306 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.FAST, 20); in TestTimeBuilding()
361 checkSize(size, Style.BYTES, Option.SMALL, 0.20); in TestSize()
362 checkSize(size, Style.BYTES, Option.FAST, 0.20); in TestSize()
424 timeGet(keys, unicodeTestMap, comparisonTime, Style.BYTES, 3); in TestTimeGet()
H A DTrieMap.java37 BYTES, CHARS enum constant
64 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>() in with()
75 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>() in with()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMapTest.java131 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet()
159 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration()
213 checkContents(unicodeTestMap, Style.BYTES); in TestContents()
251 checkSearch(Style.BYTES); in TestSearch()
302 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.SMALL, 20); in TestTimeBuilding()
303 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.FAST, 20); in TestTimeBuilding()
358 checkSize(size, Style.BYTES, Option.SMALL, 0.20); in TestSize()
359 checkSize(size, Style.BYTES, Option.FAST, 0.20); in TestSize()
421 timeGet(keys, unicodeTestMap, comparisonTime, Style.BYTES, 3); in TestTimeGet()
H A DTrieMap.java36 BYTES, CHARS enum constant
63 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>() in with()
74 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>() in with()
/third_party/ltp/
H A Drunltp112 [ -g HTMLFILE] [ -i NUM_PROCS ] [ -l LOGFILE ] [ -m NUM_PROCS,CHUNKS,BYTES,HANGUP_FLAG ]
140 -m NUM_PROCS,CHUNKS,BYTES,HANGUP_FLAG
144 [BYTES = malloc CHUNKS of BYTES bytes (default is 256MB when value 0 or undefined) ]
358 m) NUM_PROCS=1; CHUNKS=1; BYTES=$((256 * 1024 * 1024)); HANGUP_FLAG=0
366 3) BYTES="$ARGUMENT" ;;
378 if [ "$BYTES" -eq 0 ]; then
379 BYTES=$((256 * 1024 * 1024))
387 $CHUNKS --vm-bytes $BYTES --vm-hang >/dev/null 2>&1 &
391 $CHUNKS --vm-bytes $BYTES >/de
[all...]
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
H A DUtils.java107 case BYTES: in checkType()
152 case BYTES: { in wrapPrimaryValue()
194 case BYTES: in validateStringEncoding()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DWireFormat.java138 BYTES(JavaType.BYTE_STRING, WIRETYPE_LENGTH_DELIMITED) { in BYTES() method
244 case BYTES: in readPrimitiveField()
H A DExtensionSchemaFull.java253 case BYTES: in parseExtension()
374 case BYTES: in serializeExtension()
461 case BYTES: in serializeExtension()
H A DExtensionSchemaLite.java233 case BYTES: in parseExtension()
360 case BYTES: in serializeExtension()
461 case BYTES: in serializeExtension()
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFieldDescriptor.php214 $field_type !== GPBType::BYTES);
238 $proto->getType() !== GPBType::BYTES) {
H A DGPBType.php48 const BYTES = 12;
H A DGPBWire.php83 case GPBType::BYTES:
577 case GPBType::BYTES:
/third_party/python/Tools/stringbench/
H A Dstringbench.py19 BYTES = bytes_from_str = lambda x: x.encode('ascii')
22 BYTES = bytes_from_str = lambda x: x
675 if STR is BYTES and sys.version_info >= (3,):
823 if STR is BYTES:
892 if STR is BYTES:
1072 if STR is BYTES:
1293 if STR is BYTES: return big_s_bytes
1332 if STR is BYTES:
1341 if STR is BYTES:
1446 bytes_time = BenchTimer("__main__.%s(__main__.BYTES)"
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_perfcounter.c260 ADD_PC(RADV_PC_OP_SUM_WEIGHTED_4, BYTES, "VRAM read size", "Memory", in radv_query_perfcounter_descs()
265 ADD_PC(RADV_PC_OP_SUM_WEIGHTED_4, BYTES, "VRAM write size", "Memory", in radv_query_perfcounter_descs()
270 ADD_PC(RADV_PC_OP_SUM_WEIGHTED_4, BYTES, "VRAM read size", "Memory", in radv_query_perfcounter_descs()
275 ADD_PC(RADV_PC_OP_SUM_WEIGHTED_4, BYTES, "VRAM write size", "Memory", in radv_query_perfcounter_descs()
281 ADD_PC(RADV_PC_OP_REVERSE_RATIO, BYTES, "L0 cache hit ratio", "Memory", "Hit ratio of L0 cache", in radv_query_perfcounter_descs()
283 ADD_PC(RADV_PC_OP_REVERSE_RATIO, BYTES, "L1 cache hit ratio", "Memory", "Hit ratio of L1 cache", in radv_query_perfcounter_descs()
286 ADD_PC(RADV_PC_OP_REVERSE_RATIO, BYTES, "L2 cache hit ratio", "Memory", in radv_query_perfcounter_descs()
290 ADD_PC(RADV_PC_OP_REVERSE_RATIO, BYTES, "L2 cache hit ratio", "Memory", in radv_query_perfcounter_descs()
/third_party/node/deps/v8/src/wasm/
H A Dstreaming-decoder.cc295 #define BYTES(x) (x & 0xFF), (x >> 8) & 0xFF, (x >> 16) & 0xFF, (x >> 24) & 0xFF in Finish() macro
296 uint8_t module_header[]{BYTES(kWasmMagic), BYTES(kWasmVersion)}; in Finish()
297 #undef BYTES in Finish() macro
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_query.c1772 X("requested-VRAM", REQUESTED_VRAM, BYTES, AVERAGE),
1773 X("requested-GTT", REQUESTED_GTT, BYTES, AVERAGE),
1774 X("mapped-VRAM", MAPPED_VRAM, BYTES, AVERAGE),
1775 X("mapped-GTT", MAPPED_GTT, BYTES, AVERAGE),
1776 X("slab-wasted-VRAM", SLAB_WASTED_VRAM, BYTES, AVERAGE),
1777 X("slab-wasted-GTT", SLAB_WASTED_GTT, BYTES, AVERAGE),
1783 X("num-bytes-moved", NUM_BYTES_MOVED, BYTES, CUMULATIVE),
1786 X("VRAM-usage", VRAM_USAGE, BYTES, AVERAGE),
1787 X("VRAM-vis-usage", VRAM_VIS_USAGE, BYTES, AVERAGE),
1788 X("GTT-usage", GTT_USAGE, BYTES, AVERAG
[all...]
/third_party/protobuf/src/google/protobuf/
H A Dmap_type_handler.h125 TYPE_TRAITS(BYTES, ArenaStringPtr, LENGTH_DELIMITED, false, false)
257 MAP_HANDLER(BYTES)
288 GOOGLE_PROTOBUF_BYTE_SIZE(BYTES, Bytes)
332 GET_CACHED_SIZE(BYTES, Bytes)
379 WRITE_METHOD(BYTES, Bytes)
708 STRING_OR_BYTES_HANDLER_FUNCTIONS(BYTES)

Completed in 21 milliseconds

123