/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | CodePointTrie.java | 125 * @param bytes a buffer containing the binary data of a CodePointTrie 132 public static CodePointTrie fromBinary(Type type, ValueWidth valueWidth, ByteBuffer bytes) { in fromBinary() argument 133 ByteOrder outerByteOrder = bytes.order(); in fromBinary() 136 if (bytes.remaining() < 16 /* sizeof(UCPTrieHeader) */) { in fromBinary() 142 int signature = bytes.getInt(); in fromBinary() 152 bytes.order(isBigEndian ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN); in fromBinary() 168 int options = bytes.getChar(); in fromBinary() 171 int indexLength = bytes.getChar(); in fromBinary() 174 int dataLength = bytes.getChar(); in fromBinary() 177 int index3NullOffset = bytes in fromBinary() 762 fromBinary(ValueWidth valueWidth, ByteBuffer bytes) fromBinary() argument 900 fromBinary(ValueWidth valueWidth, ByteBuffer bytes) fromBinary() argument 1017 fromBinary(ByteBuffer bytes) fromBinary() argument 1074 fromBinary(ByteBuffer bytes) fromBinary() argument 1131 fromBinary(ByteBuffer bytes) fromBinary() argument 1185 fromBinary(ByteBuffer bytes) fromBinary() argument 1210 fromBinary(ByteBuffer bytes) fromBinary() argument 1235 fromBinary(ByteBuffer bytes) fromBinary() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | CodePointTrie.java | 118 * @param bytes a buffer containing the binary data of a CodePointTrie 124 public static CodePointTrie fromBinary(Type type, ValueWidth valueWidth, ByteBuffer bytes) { in fromBinary() argument 125 ByteOrder outerByteOrder = bytes.order(); in fromBinary() 128 if (bytes.remaining() < 16 /* sizeof(UCPTrieHeader) */) { in fromBinary() 134 int signature = bytes.getInt(); in fromBinary() 144 bytes.order(isBigEndian ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN); in fromBinary() 160 int options = bytes.getChar(); in fromBinary() 163 int indexLength = bytes.getChar(); in fromBinary() 166 int dataLength = bytes.getChar(); in fromBinary() 169 int index3NullOffset = bytes in fromBinary() 747 fromBinary(ValueWidth valueWidth, ByteBuffer bytes) fromBinary() argument 880 fromBinary(ValueWidth valueWidth, ByteBuffer bytes) fromBinary() argument 994 fromBinary(ByteBuffer bytes) fromBinary() argument 1047 fromBinary(ByteBuffer bytes) fromBinary() argument 1100 fromBinary(ByteBuffer bytes) fromBinary() argument 1150 fromBinary(ByteBuffer bytes) fromBinary() argument 1174 fromBinary(ByteBuffer bytes) fromBinary() argument 1198 fromBinary(ByteBuffer bytes) fromBinary() argument [all...] |
/third_party/node/test/fixtures/wpt/encoding/ |
H A D | textdecoder-byte-order-marks.any.js | 7 bytes: [0x7A, 0xC2, 0xA2, 0xE6, 0xB0, 0xB4, 0xF0, 0x9D, 0x84, 0x9E, 0xF4, 0x8F, 0xBF, 0xBD] 12 bytes: [0x7A, 0x00, 0xA2, 0x00, 0x34, 0x6C, 0x34, 0xD8, 0x1E, 0xDD, 0xFF, 0xDB, 0xFD, 0xDF] 17 bytes: [0x00, 0x7A, 0x00, 0xA2, 0x6C, 0x34, 0xD8, 0x34, 0xDD, 0x1E, 0xDB, 0xFF, 0xDF, 0xFD] 27 assert_equals(decoder.decode(new Uint8Array(t.bytes)), string, 30 assert_equals(decoder.decode(new Uint8Array(t.bom.concat(t.bytes))), string, 37 assert_not_equals(decoder.decode(new Uint8Array(o.bom.concat(t.bytes))), string, 38 'Mismatching BOM should not be ignored - treated as garbage bytes.');
|
/third_party/ltp/testcases/network/traceroute/ |
H A D | traceroute01.sh | 35 local bytes=60 36 [ "$TST_IPV6" ] && bytes=80 38 EXPECT_PASS $TRACEROUTE $ip $bytes -n -m 2 $opts \>out.log 40 grep -q "$bytes byte" out.log 43 tst_res TFAIL "'$bytes byte' not found" 45 tst_res TPASS "$TRACEROUTE use $bytes bytes"
|
/third_party/node/deps/v8/src/heap/ |
H A D | base-space.h | 39 void AccountCommitted(size_t bytes) { in AccountCommitted() argument 40 DCHECK_GE(committed_ + bytes, committed_); in AccountCommitted() 41 committed_ += bytes; in AccountCommitted() 47 void AccountUncommitted(size_t bytes) { in AccountUncommitted() argument 48 DCHECK_GE(committed_, committed_ - bytes); in AccountUncommitted() 49 committed_ -= bytes; in AccountUncommitted()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | memory_pool.c | 71 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) in memory_pool_malloc() argument 73 if (bytes < POOL_LARGE_ALLOC) { in memory_pool_malloc() 76 if (pool->head + bytes > pool->end) in memory_pool_malloc() 79 assert(pool->head + bytes <= pool->end); in memory_pool_malloc() 83 pool->head += bytes; in memory_pool_malloc() 88 struct memory_block * block = malloc(bytes + sizeof(struct memory_block)); in memory_pool_malloc()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | ByteBufferWriterTest.java | 64 byte[] bytes = new byte[buf.remaining()]; in fillRandom() 65 new Random().nextBytes(bytes); in fillRandom() 66 buf.put(bytes); in fillRandom() 73 byte[] bytes = new byte[buf.remaining()]; in toArray() 74 buf.get(bytes); in toArray() 76 return bytes; in toArray()
|
/third_party/backends/backend/ |
H A D | bh.h | 283 SANE_Int lineMaxBytes; /* maximum bytes per scan-line */ 558 _lto2b(u_long val, SANE_Byte *bytes) in _lto2b() argument 560 bytes[0] = (val >> 8) & 0xff; in _lto2b() 561 bytes[1] = val & 0xff; in _lto2b() 565 _lto3b(u_long val, SANE_Byte *bytes) in _lto3b() argument 567 bytes[0] = (val >> 16) & 0xff; in _lto3b() 568 bytes[1] = (val >> 8) & 0xff; in _lto3b() 569 bytes[2] = val & 0xff; in _lto3b() 573 _lto4b(u_long val, SANE_Byte *bytes) in _lto4b() argument 575 bytes[ in _lto4b() 582 _2btol(SANE_Byte *bytes) _2btol() argument 592 _4btol(SANE_Byte *bytes) _4btol() argument [all...] |
/third_party/openssl/test/testutil/ |
H A D | format_output.c | 168 * Constants to define the number of bytes to display per line and the number 207 static int convert_bn_memory(const unsigned char *in, size_t bytes, in convert_bn_memory() argument 210 int n = bytes * 2, i; in convert_bn_memory() 215 hex_convert_memory(in, bytes, out, BN_OUTPUT_SIZE); in convert_bn_memory() 225 * in[bytes] is defined because we're converting a non-zero in convert_bn_memory() 228 if ((in[bytes] & 0xf0) != 0 && BN_is_negative(bn)) { in convert_bn_memory() 272 const size_t bytes = bn_bytes; in test_fail_bignum_common() local 301 len = ((l1 > l2 ? l1 : l2) + bytes - 1) / bytes * bytes; in test_fail_bignum_common() 431 const size_t bytes = (MAX_STRING_WIDTH - 9) / 17 * 8; test_fail_memory_common() local [all...] |
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
H A D | CodedInputStreamTest.java | 51 * Helper to construct a byte array from a bunch of bytes. The inputs are 55 private byte[] bytes(int... bytesAsInts) { in bytes() method in CodedInputStreamTest 56 byte[] bytes = new byte[bytesAsInts.length]; in bytes() 58 bytes[i] = (byte) bytesAsInts[i]; in bytes() 60 return bytes; in bytes() 64 * An InputStream which limits the number of bytes it reads at a time. 90 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 122 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 148 assertReadVarint(bytes(0x00), 0); in testReadVarint() 149 assertReadVarint(bytes( in testReadVarint() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | Trie.java | 125 * of bytes 145 * @param bytes data of an ICU data file, containing the trie 149 protected Trie(ByteBuffer bytes, DataManipulate dataManipulate) in Trie() argument 152 int signature = bytes.getInt(); in Trie() 153 m_options_ = bytes.getInt(); in Trie() 166 m_dataOffset_ = bytes.getInt(); in Trie() 167 m_dataLength_ = bytes.getInt(); in Trie() 168 unserialize(bytes); in Trie() 365 * @param bytes buffer containing trie data 367 protected void unserialize(ByteBuffer bytes) in unserialize() argument [all...] |
H A D | UBiDiProps.java | 38 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); in UBiDiProps() 39 readData(bytes); in UBiDiProps() 42 private void readData(ByteBuffer bytes) throws IOException { in readData() argument 44 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); in readData() 48 count=bytes.getInt(); in readData() 56 indexes[i]=bytes.getInt(); in readData() 60 trie=Trie2_16.createFromSerialized(bytes); in readData() 64 throw new IOException(DATA_FILE_NAME+": not enough bytes for the trie"); in readData() 66 // skip padding after trie bytes in readData() 67 ICUBinary.skipBytes(bytes, expectedTrieLengt in readData() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | Trie.java | 127 * of bytes 147 * @param bytes data of an ICU data file, containing the trie 151 protected Trie(ByteBuffer bytes, DataManipulate dataManipulate) in Trie() argument 154 int signature = bytes.getInt(); in Trie() 155 m_options_ = bytes.getInt(); in Trie() 168 m_dataOffset_ = bytes.getInt(); in Trie() 169 m_dataLength_ = bytes.getInt(); in Trie() 170 unserialize(bytes); in Trie() 367 * @param bytes buffer containing trie data 369 protected void unserialize(ByteBuffer bytes) in unserialize() argument [all...] |
H A D | UBiDiProps.java | 42 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); in UBiDiProps() 43 readData(bytes); in UBiDiProps() 46 private void readData(ByteBuffer bytes) throws IOException { in readData() argument 48 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); in readData() 52 count=bytes.getInt(); in readData() 60 indexes[i]=bytes.getInt(); in readData() 64 trie=Trie2_16.createFromSerialized(bytes); in readData() 68 throw new IOException(DATA_FILE_NAME+": not enough bytes for the trie"); in readData() 70 // skip padding after trie bytes in readData() 71 ICUBinary.skipBytes(bytes, expectedTrieLengt in readData() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_linear.c | 42 size_t bytes = t->cols * t->block.size; in pipe_linear_to_tile() local 51 ptr = (char*)src_ptr + src_stride * t->rows * y + bytes * x; in pipe_linear_to_tile() 53 memcpy(dst_ptr2, ptr, bytes); in pipe_linear_to_tile() 54 dst_ptr2 += bytes; in pipe_linear_to_tile() 66 size_t bytes = t->cols * t->block.size; in pipe_linear_from_tile() local 73 ptr = (char*)dst_ptr + dst_stride * t->rows * y + bytes * x; in pipe_linear_from_tile() 75 memcpy(ptr, src_ptr2, bytes); in pipe_linear_from_tile() 76 src_ptr2 += bytes; in pipe_linear_from_tile()
|
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | out.rs | 21 bytes: String, 70 let include = &self.include.content.bytes; in content() 71 let builtin = &self.builtin.content.bytes; in content() 72 let content = &self.content.get_mut().bytes; in content() 146 if self.section_pending && !self.bytes.is_empty() { in write() 147 self.bytes.push('\n'); in write() 149 self.bytes.push_str(b); in write() 173 self.section_pending = !self.bytes.is_empty(); in flush_blocks() 181 self.bytes.push('\n'); in flush_blocks() 184 Block::write_begin(begin_block, &mut self.bytes); in flush_blocks() [all...] |
/third_party/rust/crates/cxx/gen/src/ |
H A D | out.rs | 21 bytes: String, 70 let include = &self.include.content.bytes; in content() 71 let builtin = &self.builtin.content.bytes; in content() 72 let content = &self.content.get_mut().bytes; in content() 146 if self.section_pending && !self.bytes.is_empty() { in write() 147 self.bytes.push('\n'); in write() 149 self.bytes.push_str(b); in write() 173 self.section_pending = !self.bytes.is_empty(); in flush_blocks() 181 self.bytes.push('\n'); in flush_blocks() 184 Block::write_begin(begin_block, &mut self.bytes); in flush_blocks() [all...] |
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | out.rs | 21 bytes: String, 70 let include = &self.include.content.bytes; in content() 71 let builtin = &self.builtin.content.bytes; in content() 72 let content = &self.content.get_mut().bytes; in content() 146 if self.section_pending && !self.bytes.is_empty() { in write() 147 self.bytes.push('\n'); in write() 149 self.bytes.push_str(b); in write() 173 self.section_pending = !self.bytes.is_empty(); in flush_blocks() 181 self.bytes.push('\n'); in flush_blocks() 184 Block::write_begin(begin_block, &mut self.bytes); in flush_blocks() [all...] |
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | out.rs | 21 bytes: String, 70 let include = &self.include.content.bytes; in content() 71 let builtin = &self.builtin.content.bytes; in content() 72 let content = &self.content.get_mut().bytes; in content() 146 if self.section_pending && !self.bytes.is_empty() { in write() 147 self.bytes.push('\n'); in write() 149 self.bytes.push_str(b); in write() 173 self.section_pending = !self.bytes.is_empty(); in flush_blocks() 181 self.bytes.push('\n'); in flush_blocks() 184 Block::write_begin(begin_block, &mut self.bytes); in flush_blocks() [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/ |
H A D | Program.cs | 73 throw new EndOfStreamException("Read " + inputData.Length + " bytes of data when expecting " + size); in RunTest() 165 byte[] bytes = input.ReadBytes(4); in ReadInt32() 166 if (bytes.Length == 0) in ReadInt32() 171 if (bytes.Length != 4) in ReadInt32() 173 throw new EndOfStreamException("Read " + bytes.Length + " bytes of size when expecting 4"); in ReadInt32() 175 return bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[ in ReadInt32() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Memory.cpp | 55 // size_t bytes; 76 static void *allocate(size_t bytes, size_t alignment, bool clearToZero) in allocate() argument 80 size_t size = bytes + sizeof(Allocation) + alignment; in allocate() 94 // allocation->bytes = bytes; in allocate() 102 void *allocateUninitialized(size_t bytes, size_t alignment) in allocateUninitialized() argument 104 return allocate(bytes, alignment, false); in allocateUninitialized() 107 void *allocateZero(size_t bytes, size_t alignment) in allocateZero() argument 109 return allocate(bytes, alignment, true); in allocateZero() 114 void *allocateZeroOrPoison(size_t bytes, size_ argument [all...] |
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | psa_storage.py | 109 material: bytes #pylint: disable=used-before-assignment 119 self.material = material #type: bytes 127 ) -> bytes: #pylint: disable=used-before-assignment 141 def bytes(self) -> bytes: member in Key 166 This is the hexadecimal representation of `self.bytes`. 168 return self.bytes().hex() 186 self.assertEqual(key.bytes(), bytes.fromhex(expected_hex)) 190 length = 0xfff8 // 8 # PSA_MAX_KEY_BITS in bytes [all...] |
/third_party/musl/src/hook/linux/ |
H A D | malloc_common.c | 32 extern void* libc_gwp_asan_malloc(size_t bytes); 44 void* malloc(size_t bytes) in malloc() argument 46 if (bytes >= MALLOC_REPORT_LIMIT) { in malloc() 58 return dispatch_table->malloc(bytes); in malloc() 62 return libc_gwp_asan_malloc(bytes); in malloc() 64 return MuslFunc(malloc)(bytes); in malloc() 68 return libc_gwp_asan_malloc(bytes); in malloc() 70 return MuslFunc(malloc)(bytes); in malloc() 72 return dispatch_table->malloc(bytes); in malloc() 75 return libc_gwp_asan_malloc(bytes); in malloc() [all...] |
/third_party/rust/crates/rustix/src/backend/libc/net/ |
H A D | addr.rs | 45 let bytes = path.to_bytes_with_nul(); in _new() 46 if bytes.len() > unix.sun_path.len() { in _new() 49 for (i, b) in bytes.iter().enumerate() { in _new() 62 unix.sun_len = (offsetof_sun_path() + bytes.len()).try_into().unwrap(); in _new() 75 len: (offsetof_sun_path() + bytes.len()).try_into().unwrap(), in _new() 150 let bytes = &self.unix.sun_path[..end]; in path() 155 bytes.as_ptr().cast(), in path() 156 bytes.len(), in path() 171 let bytes = &self.unix.sun_path[1..end]; in abstract_name() 173 unsafe { Some(slice::from_raw_parts(bytes in abstract_name() [all...] |
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | protocol_core.cc | 13 DeserializerState::DeserializerState(std::vector<uint8_t> bytes) in DeserializerState() argument 14 : storage_(new std::vector<uint8_t>(std::move(bytes))), in DeserializerState() 155 std::vector<uint8_t>* bytes) { in Serialize() 156 bytes->push_back(value ? cbor::EncodeTrue() : cbor::EncodeFalse()); in Serialize() 170 std::vector<uint8_t>* bytes) { in Serialize() 171 cbor::EncodeInt32(value, bytes); in Serialize() 174 ContainerSerializer::ContainerSerializer(std::vector<uint8_t>* bytes, in ContainerSerializer() argument 176 : bytes_(bytes) { in ContainerSerializer() 214 std::vector<uint8_t>* bytes) { in Serialize() 215 cbor::EncodeDouble(value, bytes); in Serialize() 154 Serialize(bool value, std::vector<uint8_t>* bytes) Serialize() argument 169 Serialize(int32_t value, std::vector<uint8_t>* bytes) Serialize() argument 213 Serialize(double value, std::vector<uint8_t>* bytes) Serialize() argument 266 FromSpan( span<uint8_t> bytes) FromSpan() argument 283 Serialize( const std::unique_ptr<DeferredMessage>& value, std::vector<uint8_t>* bytes) Serialize() argument [all...] |