Home
last modified time | relevance | path

Searched refs:bytes (Results 26 - 50 of 2529) sorted by relevance

12345678910>>...102

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DByteArrayWrapper.java34 public byte[] bytes; field in ByteArrayWrapper
38 * Different from bytes.length, size will be <= bytes.length.
49 // leave bytes null, don't allocate twice in ByteArrayWrapper()
63 this.bytes = bytesToAdopt; in ByteArrayWrapper()
73 bytes = new byte[size]; in ByteArrayWrapper()
74 source.get(bytes,0,size); in ByteArrayWrapper()
82 bytes = new byte[size];
83 copyBytes(source.bytes, 0, bytes,
[all...]
H A DBytesTrieBuilder.java32 // Used in add() to wrap the bytes into a CharSequence for StringTrieBuilder.addImpl().
77 return new BytesTrie(bytes, bytes.length-bytesLength); in build()
89 * <em>Do not modify the bytes in the buffer!</em>
100 return ByteBuffer.wrap(bytes, bytes.length-bytesLength, bytesLength); in buildByteBuffer()
105 if(bytes==null) { in buildBytes()
106 bytes=new byte[1024]; in buildBytes()
118 bytes=null; in clear()
158 if(length>bytes in ensureCapacity()
305 private byte[] bytes; global() field in BytesTrieBuilder
[all...]
/third_party/skia/tests/
H A DChecksumTest.cpp15 // Put 128 random bytes into two identical buffers. Any multiple of 4 will do. in DEF_TEST()
42 // 4 bytes --> hits SkChecksum::Mix fast path. in DEF_TEST()
77 uint8_t bytes[256]; in DEF_TEST() local
79 bytes[i] = i; in DEF_TEST()
81 REPORTER_ASSERT(r, SkOpts::hash(bytes, 0) == 0x00000000, "%08x", SkOpts::hash(bytes, 0)); in DEF_TEST()
82 REPORTER_ASSERT(r, SkOpts::hash(bytes, 1) == 0x00000000, "%08x", SkOpts::hash(bytes, 1)); in DEF_TEST()
83 REPORTER_ASSERT(r, SkOpts::hash(bytes, 2) == 0xf26b8303, "%08x", SkOpts::hash(bytes, in DEF_TEST()
[all...]
/third_party/node/test/fixtures/wpt/encoding/
H A Dtextdecoder-streaming.any.js45 function bytes(byteArray) {
53 assert_equals(decoder.decode(bytes([0xC1]), {stream: true}), "\uFFFD");
56 assert_equals(decoder.decode(bytes([0xF5]), {stream: true}), "\uFFFD");
59 assert_equals(decoder.decode(bytes([0xE0, 0x41]), {stream: true}), "\uFFFDA");
60 assert_equals(decoder.decode(bytes([0x42])), "B");
62 assert_equals(decoder.decode(bytes([0xE0, 0x80]), {stream: true}), "\uFFFD\uFFFD");
63 assert_equals(decoder.decode(bytes([0x80])), "\uFFFD");
65 assert_equals(decoder.decode(bytes([0xED, 0xA0]), {stream: true}), "\uFFFD\uFFFD");
66 assert_equals(decoder.decode(bytes([0x80])), "\uFFFD");
68 assert_equals(decoder.decode(bytes([
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
H A Dmain.rs20 /// Find and parse sign and get remaining bytes.
22 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
23 match bytes.get(0) { in parse_sign()
24 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
25 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
26 _ => (true, bytes), in parse_sign()
75 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
77 &bytes[count..]
82 fn rtrim_zero<'a>(bytes
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DRBBIDataWrapper.java42 * Length of a table row in bytes. Note mismatch with table data, which is short[].
61 static RBBIStateTable get(ByteBuffer bytes, int length) throws IOException { in get() argument
69 This.fNumStates = bytes.getInt(); in get()
70 This.fRowLen = bytes.getInt(); in get()
71 This.fFlags = bytes.getInt(); in get()
72 This.fReserved = bytes.getInt(); in get()
73 int lengthOfShorts = length - 16; // length in bytes. in get()
74 This.fTable = ICUBinary.getShorts(bytes, lengthOfShorts / 2, lengthOfShorts & 1); in get()
78 public int put(DataOutputStream bytes) throws IOException { in put() argument
79 bytes in put()
260 get(ByteBuffer bytes) get() argument
[all...]
/third_party/node/deps/v8/src/heap/
H A Dallocation-stats.h61 void IncreaseAllocatedBytes(size_t bytes, const BasicMemoryChunk* page) { in IncreaseAllocatedBytes() argument
64 DCHECK_GE(size + bytes, size); in IncreaseAllocatedBytes()
66 size_.fetch_add(bytes); in IncreaseAllocatedBytes()
68 allocated_on_page_[page] += bytes; in IncreaseAllocatedBytes()
72 void DecreaseAllocatedBytes(size_t bytes, const BasicMemoryChunk* page) { in DecreaseAllocatedBytes() argument
73 DCHECK_GE(size_, bytes); in DecreaseAllocatedBytes()
74 size_.fetch_sub(bytes); in DecreaseAllocatedBytes()
76 DCHECK_GE(allocated_on_page_[page], bytes); in DecreaseAllocatedBytes()
77 allocated_on_page_[page] -= bytes; in DecreaseAllocatedBytes()
81 void DecreaseCapacity(size_t bytes) { in DecreaseCapacity() argument
87 IncreaseCapacity(size_t bytes) IncreaseCapacity() argument
[all...]
/third_party/rust/crates/rustc-hash/src/
H A Dlib.rs59 /// itself is much higher because it works on up to 8 bytes at a time.
85 fn write(&mut self, mut bytes: &[u8]) { in write()
87 let read_usize = |bytes: &[u8]| u32::from_ne_bytes(bytes[..4].try_into().unwrap()); in write()
89 let read_usize = |bytes: &[u8]| u64::from_ne_bytes(bytes[..8].try_into().unwrap()); in write()
93 while bytes.len() >= size_of::<usize>() { in write()
94 hash.add_to_hash(read_usize(bytes) as usize); in write()
95 bytes = &bytes[size_o in write()
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DByteStringTest.java120 "ByteString comparison treats bytes as unsigned values", in testCompare_interpretsByteValuesAsUnsigned()
125 byte[] bytes = getTestBytes(); in testSubstring_BeginIndex()
126 ByteString substring = ByteString.copyFrom(bytes).substring(500); in testSubstring_BeginIndex()
129 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
133 byte[] bytes = getTestBytes(); in testCopyFrom_BytesOffsetSize()
134 ByteString byteString = ByteString.copyFrom(bytes, 500, 200); in testCopyFrom_BytesOffsetSize()
136 "copyFrom sub-range must contain the expected bytes", in testCopyFrom_BytesOffsetSize()
137 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
141 byte[] bytes in testCopyFrom_Bytes()
359 assertReadFromReluctantStream(byte[] bytes, int chunkSize) assertReadFromReluctantStream() argument
377 assertReadFrom(byte[] bytes) assertReadFrom() argument
[all...]
H A DIsValidUtf8TestUtil.java64 ByteString newByteString(byte[] bytes); in newByteString() argument
70 public ByteString newByteString(byte[] bytes) {
71 return ByteString.wrap(bytes);
78 public ByteString newByteString(byte[] bytes) {
79 return new NioByteString(ByteBuffer.wrap(bytes));
95 public ByteString newByteString(byte[] bytes) {
98 if (buffer == null || buffer.capacity() < bytes.length) {
99 buffer = ByteBuffer.allocateDirect(bytes.length);
103 buffer.put(bytes);
120 // Both bytes ar
440 outputFailure(long byteChar, byte[] bytes, byte[] after) outputFailure() argument
444 outputFailure(long byteChar, byte[] bytes, byte[] after, int len) outputFailure() argument
[all...]
/third_party/alsa-utils/alsactl/
H A Dinit_sysdeps.c24 size_t bytes = 0; in strlcpy() local
30 if (bytes+1 < size) in strlcpy()
32 bytes++; in strlcpy()
38 return bytes; in strlcpy()
43 size_t bytes = 0; in strlcat() local
48 while (bytes < size && *q) { in strlcat()
50 bytes++; in strlcat()
52 if (bytes == size) in strlcat()
53 return (bytes + strlen(src)); in strlcat()
56 if (bytes in strlcat()
[all...]
/third_party/backends/backend/
H A Dibm.h154 _lto2b(SANE_Int val, SANE_Byte *bytes) in _lto2b() argument
158 bytes[0] = (val >> 8) & 0xff; in _lto2b()
159 bytes[1] = val & 0xff; in _lto2b()
163 _lto3b(SANE_Int val, SANE_Byte *bytes) in _lto3b() argument
167 bytes[0] = (val >> 16) & 0xff; in _lto3b()
168 bytes[1] = (val >> 8) & 0xff; in _lto3b()
169 bytes[2] = val & 0xff; in _lto3b()
173 _lto4b(SANE_Int val, SANE_Byte *bytes) in _lto4b() argument
176 bytes[0] = (val >> 24) & 0xff; in _lto4b()
177 bytes[ in _lto4b()
183 _2btol(SANE_Byte *bytes) _2btol() argument
193 _3btol(SANE_Byte *bytes) _3btol() argument
204 _4btol(SANE_Byte *bytes) _4btol() argument
[all...]
/third_party/rust/crates/regex/tests/
H A Dtest_default.rs84 use regex::bytes; in oibits()
102 assert_send::<bytes::Regex>(); in oibits()
103 assert_sync::<bytes::Regex>(); in oibits()
104 assert_unwind_safe::<bytes::Regex>(); in oibits()
105 assert_ref_unwind_safe::<bytes::Regex>(); in oibits()
106 assert_send::<bytes::RegexBuilder>(); in oibits()
107 assert_sync::<bytes::RegexBuilder>(); in oibits()
108 assert_unwind_safe::<bytes::RegexBuilder>(); in oibits()
109 assert_ref_unwind_safe::<bytes::RegexBuilder>(); in oibits()
120 assert_send::<bytes in oibits()
[all...]
/third_party/node/deps/v8/src/wasm/
H A Djump-table-assembler.cc19 // Use a push, because mov to an extended register takes 6 bytes. in EmitLazyCompileJumpSlot()
20 pushq_imm32(func_index); // 5 bytes in EmitLazyCompileJumpSlot()
21 EmitJumpSlot(lazy_compile_target); // 5 bytes in EmitLazyCompileJumpSlot()
28 near_jmp(displacement, RelocInfo::NO_INFO); // 5 bytes in EmitJumpSlot()
35 jmp(Operand(&data)); // 6 bytes in EmitFarJumpSlot()
36 Nop(2); // 2 bytes in EmitFarJumpSlot()
42 dq(target); // 8 bytes in EmitFarJumpSlot()
49 // Offset of the target is at 8 bytes, see {EmitFarJumpSlot}. in PatchFarJumpSlot()
57 void JumpTableAssembler::NopBytes(int bytes) { in NopBytes() argument
58 DCHECK_LE(0, bytes); in NopBytes()
[all...]
/third_party/node/deps/v8/src/heap/cppgc/
H A Dprocess-heap-statistics.h22 void AllocatedObjectSizeIncreased(size_t bytes) final {
23 ProcessHeapStatisticsUpdater::IncreaseTotalAllocatedObjectSize(bytes);
24 object_size_changes_since_last_reset_ += bytes;
27 void AllocatedObjectSizeDecreased(size_t bytes) final {
28 ProcessHeapStatisticsUpdater::DecreaseTotalAllocatedObjectSize(bytes);
29 object_size_changes_since_last_reset_ -= bytes;
32 void ResetAllocatedObjectSize(size_t bytes) final {
35 ProcessHeapStatisticsUpdater::IncreaseTotalAllocatedObjectSize(bytes);
36 object_size_changes_since_last_reset_ = bytes;
39 void AllocatedSizeIncreased(size_t bytes) fina
[all...]
/third_party/toybox/toys/other/
H A Ddevmem.c13 Read/write physical address. WIDTH is 1, 2, 4, or 8 bytes (default 4).
22 int writing = toys.optc == 3, page_size = getpagesize(), bytes = 4, fd; in devmem_main() local
32 bytes = 1<<i; in devmem_main()
36 if (writing) data = atolx_range(toys.optargs[2], 0, (1ULL<<(8*bytes))-1); in devmem_main()
41 map_len = (addr+bytes-map_off); in devmem_main()
49 if (bytes == 1) *(char *)p = data; in devmem_main()
50 else if (bytes == 2) *(short *)p = data; in devmem_main()
51 else if (bytes == 4) *(int *)p = data; in devmem_main()
52 else if (bytes == 8) *(long long *)p = data; in devmem_main()
54 if (bytes in devmem_main()
[all...]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DByteString.java60 * Immutable sequence of bytes. Provides conversions to and from {@code byte[]}, {@link
67 * <p>Substring is supported by sharing the reference to the immutable underlying bytes.
80 * their bytes on {@link #concat(ByteString)}. The trade-off is copy size versus the overhead of
87 * rope start at 256 bytes, but double each iteration up to 8192 bytes.
109 byte[] copyFrom(byte[] bytes, int offset, int size); in copyFrom() argument
115 public byte[] copyFrom(byte[] bytes, int offset, int size) { in copyFrom() argument
117 System.arraycopy(bytes, offset, copy, 0, size); in copyFrom()
125 public byte[] copyFrom(byte[] bytes, int offset, int size) { in copyFrom() argument
126 return Arrays.copyOfRange(bytes, offse in copyFrom()
360 copyFrom(byte[] bytes, int offset, int size) copyFrom() argument
371 copyFrom(byte[] bytes) copyFrom() argument
389 wrap(byte[] bytes) wrap() argument
398 wrap(byte[] bytes, int offset, int length) wrap() argument
411 copyFrom(ByteBuffer bytes, int size) copyFrom() argument
424 copyFrom(ByteBuffer bytes) copyFrom() argument
1306 protected final byte[] bytes; global() field in ByteString.LiteralByteString
1313 LiteralByteString(byte[] bytes) LiteralByteString() argument
1549 BoundedByteString(byte[] bytes, int offset, int length) BoundedByteString() argument
[all...]
H A DBinaryReader.java79 /** Returns the total number of bytes read so far from the input buffer. */
318 ByteString bytes = in readBytes()
323 return bytes; in readBytes()
368 final int bytes = readVarint32(); in readDoubleList()
369 verifyPackedFixed64Length(bytes); in readDoubleList()
370 final int fieldEndPos = pos + bytes; in readDoubleList()
397 final int bytes = readVarint32(); in readDoubleList()
398 verifyPackedFixed64Length(bytes); in readDoubleList()
399 final int fieldEndPos = pos + bytes; in readDoubleList()
432 final int bytes in readFloatList()
1707 verifyPackedFixed64Length(int bytes) verifyPackedFixed64Length() argument
1715 verifyPackedFixed32Length(int bytes) verifyPackedFixed32Length() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrieBuilder.java32 // Used in add() to wrap the bytes into a CharSequence for StringTrieBuilder.addImpl().
82 return new BytesTrie(bytes, bytes.length-bytesLength); in build()
94 * <em>Do not modify the bytes in the buffer!</em>
106 return ByteBuffer.wrap(bytes, bytes.length-bytesLength, bytesLength); in buildByteBuffer()
111 if(bytes==null) { in buildBytes()
112 bytes=new byte[1024]; in buildBytes()
125 bytes=null; in clear()
165 if(length>bytes in ensureCapacity()
323 private byte[] bytes; global() field in BytesTrieBuilder
[all...]
/third_party/pulseaudio/sonic/
H A Dwave.c23 int bytesWritten; /* The number of bytes written so far, including header */
31 void *bytes, in writeBytes()
39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); in writeBytes()
60 char bytes[4]; in writeInt() local
64 bytes[i] = value; in writeInt()
67 writeBytes(file, bytes, 4); in writeInt()
75 char bytes[2]; in writeShort() local
79 bytes[i] = value; in writeShort()
82 writeBytes(file, bytes, 2); in writeShort()
85 /* Read bytes fro
29 writeBytes( waveFile file, void *bytes, int length) writeBytes() argument
86 readBytes( waveFile file, void *bytes, int length) readBytes() argument
98 readExactBytes( waveFile file, void *bytes, int length) readExactBytes() argument
119 unsigned char bytes[4]; readInt() local
134 unsigned char bytes[2]; readShort() local
332 unsigned char bytes[WAVE_BUF_LEN]; readFromWaveFile() local
356 unsigned char bytes[WAVE_BUF_LEN]; writeToWaveFile() local
[all...]
/third_party/toybox/toys/posix/
H A Dtail.c21 -c Output the last NUMBER bytes, +NUMBER counts from start
67 // Note: bytes and lines are negative here.
68 static int try_lseek(int fd, long bytes, long lines) in try_lseek() argument
78 if (bytes) { in try_lseek()
79 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); in try_lseek()
86 bytes = pos; in try_lseek()
122 lseek(fd, bytes, SEEK_SET); in try_lseek()
129 long bytes = TT.c, lines = TT.n; in do_tail() local
145 if (bytes<0 || lines<0) { in do_tail()
150 if (try_lseek(fd, bytes, line in do_tail()
[all...]
/third_party/ffmpeg/libavcodec/ppc/
H A Dpixblockdsp.c50 vector unsigned char bytes = vec_vsx_ld(0, pixels); in get_pixels_altivec() local
52 // Convert the bytes into shorts. in get_pixels_altivec()
53 //vector signed short shorts = (vector signed short) vec_perm(zero, bytes, perm); in get_pixels_altivec()
54 vector signed short shorts = (vector signed short) vec_perm(bytes, zero, perm); in get_pixels_altivec()
76 vec_u8 bytes = vec_perm(pixl, pixr, perm); in get_pixels_altivec() local
78 // Convert the bytes into shorts. in get_pixels_altivec()
79 vec_s16 shorts = (vec_s16)vec_mergeh(zero, bytes); in get_pixels_altivec()
103 vector unsigned char bytes = vec_vsx_ld(0, s1); in diff_pixels_altivec() local
105 // Convert the bytes into shorts. in diff_pixels_altivec()
106 shorts1 = (vector signed short) vec_mergeh(bytes, zer in diff_pixels_altivec()
168 vec_u8 bytes = vec_perm(pixl, pixr, perm); diff_pixels_altivec() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/
H A Dspirv_endian.cpp28 unsigned char bytes[4]; member
54 uint8_t bytes[4]; in spvBinaryEndianness()
55 memcpy(bytes, binary->code, sizeof(uint32_t)); in spvBinaryEndianness()
57 if (0x03 == bytes[0] && 0x02 == bytes[1] && 0x23 == bytes[2] && in spvBinaryEndianness()
58 0x07 == bytes[3]) { in spvBinaryEndianness()
63 if (0x07 == bytes[0] && 0x23 == bytes[1] && 0x02 == bytes[ in spvBinaryEndianness()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
H A Dspirv_endian.cpp28 unsigned char bytes[4]; member
54 uint8_t bytes[4]; in spvBinaryEndianness()
55 memcpy(bytes, binary->code, sizeof(uint32_t)); in spvBinaryEndianness()
57 if (0x03 == bytes[0] && 0x02 == bytes[1] && 0x23 == bytes[2] && in spvBinaryEndianness()
58 0x07 == bytes[3]) { in spvBinaryEndianness()
63 if (0x07 == bytes[0] && 0x23 == bytes[1] && 0x02 == bytes[ in spvBinaryEndianness()
[all...]
/third_party/spirv-tools/source/
H A Dspirv_endian.cpp28 unsigned char bytes[4]; member
54 uint8_t bytes[4]; in spvBinaryEndianness()
55 memcpy(bytes, binary->code, sizeof(uint32_t)); in spvBinaryEndianness()
57 if (0x03 == bytes[0] && 0x02 == bytes[1] && 0x23 == bytes[2] && in spvBinaryEndianness()
58 0x07 == bytes[3]) { in spvBinaryEndianness()
63 if (0x07 == bytes[0] && 0x23 == bytes[1] && 0x02 == bytes[ in spvBinaryEndianness()
[all...]

Completed in 11 milliseconds

12345678910>>...102