Home
last modified time | relevance | path

Searched refs:BYTES (Results 1 – 25 of 131) sorted by relevance

123456

/third_party/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.c13 #define BYTES 64 macro
39 for (i = 0; i < BYTES - 1; i++) { in main()
45 buf[BYTES - 1] = '\n'; in main()
53 offset += 2 * BYTES; in main()
59 offset = BYTES; in main()
61 offset += 2 * BYTES; in main()
66 if (writeb_lock(fd, offset, SEEK_SET, BYTES) < 0) in main()
72 write(fd, buf, BYTES); in main()
74 if (unb_lock(fd, offset, SEEK_SET, BYTES) < 0) in main()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
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.length, testString.size()); in testSize()
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dproto_test.js93 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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));
245 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[1], BYTES));
[all …]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dproto_test.js93 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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));
245 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[1], BYTES));
[all …]
/third_party/protobuf/js/binary/
Dproto_test.js97 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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));
247 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[1], BYTES));
[all …]
Dconstants.js200 BYTES: 12, property
258 case fieldTypes.BYTES:
/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dproto3_test.js42 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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.0.0/
Dproto3_test.js42 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/
DTrainLenet.java138 trainSampleSize = trainSize / Integer.BYTES; in initDataSet()
162 … labelArray = new int[imageArray.length * NUM_OF_CLASS / (imageSize / batchSize * Float.BYTES)]; in padSamples()
171 … byte[] padImageArray = new byte[imageArray.length + padSize * batchImageSize * Float.BYTES]; in padSamples()
178 System.arraycopy(imageArray, idx * batchImageSize * Float.BYTES, padImageArray, in padSamples()
179 … padImageArray.length + i * batchImageSize * Float.BYTES, batchImageSize * Float.BYTES); in padSamples()
216 imageBuffer = ByteBuffer.allocateDirect(imageSize * Float.BYTES); in initSessionAndInputs()
224 labelIdBuffer = ByteBuffer.allocateDirect(labelSize * Integer.BYTES); in initSessionAndInputs()
234 if ((batchIdx + 1) * imageSize * Float.BYTES - 1 >= imageArray.length) { in fillModelInput()
239 for (int i = 0; i < imageSize * Float.BYTES; i++) { in fillModelInput()
240 imageBuffer.put(imageArray[batchIdx * imageSize * Float.BYTES + i]); in fillModelInput()
DAlBert.java106 inputIdBufffer = ByteBuffer.allocateDirect(inputSize * Integer.BYTES); in initSessionAndInputs()
107 tokenIdBufffer = ByteBuffer.allocateDirect(inputSize * Integer.BYTES); in initSessionAndInputs()
108 maskIdBufffer = ByteBuffer.allocateDirect(inputSize * Integer.BYTES); in initSessionAndInputs()
113 labelIdBufffer = ByteBuffer.allocateDirect(batchSize * Integer.BYTES); in initSessionAndInputs()
/third_party/protobuf/js/
Dproto3_test.js46 var BYTES = new Uint8Array([1, 2, 8, 9]); variable
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/ltp/
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 >/dev/null 2>&1 &
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
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()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
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()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DWireFormat.java138 BYTES(JavaType.BYTE_STRING, WIRETYPE_LENGTH_DELIMITED) { in BYTES() enumConstant
244 case BYTES: in readPrimitiveField()
/third_party/python/Tools/stringbench/
Dstringbench.py19 BYTES = bytes_from_str = lambda x: x.encode('ascii') variable
22 BYTES = bytes_from_str = lambda x: x variable
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:
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DUtils.java107 case BYTES: in checkType()
152 case BYTES: { in wrapPrimaryValue()
194 case BYTES: in validateStringEncoding()
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DFieldDescriptor.php214 $field_type !== GPBType::BYTES);
238 $proto->getType() !== GPBType::BYTES) {
DGPBType.php48 const BYTES = 12; define in Google\\Protobuf\\Internal\\GPBType
/third_party/alsa-utils/bat/tests/asound_state/
Dasound.state.Skylake212 type BYTES
277 type BYTES
342 type BYTES
Dasound.state.Broadwell59 type BYTES
124 type BYTES
189 type BYTES
Dasound.state.Haswell59 type BYTES
124 type BYTES
/third_party/gstreamer/gstreamer/tests/validate/simplest/flow-expectations/
Dlog-sink-sink-expected2 event segment: format=BYTES, start=0, offset=0, stop=18446744073709551615, time=0, base=0, position…
/third_party/protobuf/src/google/protobuf/
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)
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_query.c1671 X("requested-VRAM", REQUESTED_VRAM, BYTES, AVERAGE),
1672 X("requested-GTT", REQUESTED_GTT, BYTES, AVERAGE),
1673 X("mapped-VRAM", MAPPED_VRAM, BYTES, AVERAGE),
1674 X("mapped-GTT", MAPPED_GTT, BYTES, AVERAGE),
1675 X("slab-wasted-VRAM", SLAB_WASTED_VRAM, BYTES, AVERAGE),
1676 X("slab-wasted-GTT", SLAB_WASTED_GTT, BYTES, AVERAGE),
1682 X("num-bytes-moved", NUM_BYTES_MOVED, BYTES, CUMULATIVE),
1685 X("VRAM-usage", VRAM_USAGE, BYTES, AVERAGE),
1686 X("VRAM-vis-usage", VRAM_VIS_USAGE, BYTES, AVERAGE),
1687 X("GTT-usage", GTT_USAGE, BYTES, AVERAGE),

123456