Home
last modified time | relevance | path

Searched full:bytes (Results 1 – 25 of 10886) sorted by relevance

12345678910>>...436

/external/caliper/caliper/src/test/resources/com/google/caliper/bridge/
Djdk6-compilation.txt1 1 java.lang.String::hashCode (60 bytes)
2 2 java.lang.String::lastIndexOf (156 bytes)
3 3 java.lang.String::indexOf (151 bytes)
4 4 sun.nio.cs.UTF_8$Decoder::decodeArrayLoop (553 bytes)
5 5 java.io.UnixFileSystem::normalize (75 bytes)
6 6 sun.nio.cs.UTF_8$Encoder::encodeArrayLoop (490 bytes)
7 7 java.lang.String::indexOf (166 bytes)
8 1% sun.net.www.ParseUtil::encodePath @ 29 (336 bytes)
9 8 java.lang.String::equals (88 bytes)
10 9 sun.net.www.ParseUtil::encodePath (336 bytes)
[all …]
Djdk7-compilation.txt1 91 1 b java.lang.String::hashCode (67 bytes)
2 106 2 b sun.nio.cs.UTF_8$Decoder::decode (640 bytes)
3 130 3 b java.lang.String::lastIndexOf (68 bytes)
4 132 4 b java.lang.String::indexOf (87 bytes)
5 136 5 b java.io.UnixFileSystem::normalize (75 bytes)
6 138 1 % b java.io.UnixFileSystem::normalize @ 10 (75 bytes)
7 142 6 b sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
8 149 2 % b sun.nio.cs.UTF_8$Encoder::encode @ 20 (361 bytes)
9 162 2 sun.nio.cs.UTF_8$Decoder::decode (640 bytes) made not entrant
10 165 7 b sun.nio.cs.UTF_8$Decoder::decode (640 bytes)
[all …]
/external/ow2-asm/asm-test/src/main/resources/jdk3/
DLargeMethod.classLargeMethod.java package jdk3 public jdk3.LargeMethod extends java.lang.Object { private int f ...
/external/protobuf/src/google/protobuf/compiler/cpp/
Dmessage_size_unittest.cc52 virtual ~MockMessageBase() = default; // 8 bytes vtable
53 void* internal_metadata; // 8 bytes
58 int cached_size; // 4 bytes
59 // + 4 bytes padding
64 void* arena; // 8 bytes
65 int16_t capacity; // 4 bytes
66 int16_t size; // 4 bytes
67 void* data; // 8 bytes
72 void* arena; // 8 bytes
73 int current_size; // 4 bytes
[all …]
/external/nos/host/generic/nugget/proto/nugget/app/protoapi/
Dtesting_api.proto79 bytes key = 3;
80 bytes initialization_vector = 4;
84 bytes plain_text = 5;
89 bytes initialization_vector = 2;
90 bytes cipher_text = 3;
94 bytes key = 1;
95 bytes iv = 2;
96 bytes plain_text = 3;
97 bytes aad = 4;
103 bytes cipher_text = 2;
[all …]
/external/ow2-asm/asm-test/src/main/resources/jdk8/
DAllStructures.classAllStructures.java package jdk8 public abstract jdk8.AllStructures extends java.util.HashMap implements java. ...
/external/rust/crates/bytes/tests/
Dtest_bytes.rs3 use bytes::{Buf, BufMut, Bytes, BytesMut};
15 is_sync::<Bytes>(); in test_bounds()
17 is_send::<Bytes>(); in test_bounds()
26 mem::size_of::<Bytes>(), in test_layout()
28 "Bytes size should be 4 words", in test_layout()
37 mem::size_of::<Bytes>(), in test_layout()
38 mem::size_of::<Option<Bytes>>(), in test_layout()
39 "Bytes should be same size as Option<Bytes>", in test_layout()
51 let a = Bytes::from(&b"abcdefgh"[..]); in from_slice()
70 let a = format!("{:?}", Bytes::from(&b"abcdefg"[..])); in fmt()
[all …]
/external/cronet/net/base/
Dip_address.cc42 // Compare all the bytes that fall entirely within the prefix. in IPAddressPrefixCheck()
116 return IsPubliclyRoutableIPv4(ipv4.bytes()); in IsPubliclyRoutableIPv6()
123 IPAddressBytes* bytes) { in ParseIPLiteralToBytes() argument
132 bytes->Resize(16); // 128 bits. in ParseIPLiteralToBytes()
134 bytes->data()); in ParseIPLiteralToBytes()
138 bytes->Resize(4); // 32 bits. in ParseIPLiteralToBytes()
142 ip_literal.data(), host_comp, bytes->data(), &num_components); in ParseIPLiteralToBytes()
417 return std::string(reinterpret_cast<const char*>(address.bytes().data()), in IPAddressToPackedString()
425 base::StackVector<uint8_t, 16> bytes; in ConvertIPv4ToIPv4MappedIPv6() local
426 bytes->insert(bytes->end(), std::begin(kIPv4MappedPrefix), in ConvertIPv4ToIPv4MappedIPv6()
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/
DEndianUtilsTest.java48 final byte[] bytes = { 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 }; in testReadSwappedDouble()
50 final double d2 = EndianUtils.readSwappedDouble( bytes, 0 ); in testReadSwappedDouble()
53 final ByteArrayInputStream input = new ByteArrayInputStream(bytes); in testReadSwappedDouble()
59 final byte[] bytes = { 0x04, 0x03, 0x02, 0x01 }; in testReadSwappedFloat()
61 final float f2 = EndianUtils.readSwappedFloat( bytes, 0 ); in testReadSwappedFloat()
64 final ByteArrayInputStream input = new ByteArrayInputStream(bytes); in testReadSwappedFloat()
70 final byte[] bytes = { 0x04, 0x03, 0x02, 0x01 }; in testReadSwappedInteger()
71 assertEquals( 0x01020304, EndianUtils.readSwappedInteger( bytes, 0 ) ); in testReadSwappedInteger()
73 final ByteArrayInputStream input = new ByteArrayInputStream(bytes); in testReadSwappedInteger()
79 final byte[] bytes = { 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 }; in testReadSwappedLong()
[all …]
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_cipher.camellia.data9 CAMELLIA Encrypt and decrypt 0 bytes [#1]
17 CAMELLIA Encrypt and decrypt 2 bytes [#1]
21 CAMELLIA Encrypt and decrypt 7 bytes [#1]
25 CAMELLIA Encrypt and decrypt 8 bytes [#1]
29 CAMELLIA Encrypt and decrypt 9 bytes [#1]
33 CAMELLIA Encrypt and decrypt 15 bytes [#1]
37 CAMELLIA Encrypt and decrypt 16 bytes [#1]
41 CAMELLIA Encrypt and decrypt 17 bytes [#1]
45 CAMELLIA Encrypt and decrypt 31 bytes [#1]
49 CAMELLIA Encrypt and decrypt 32 bytes [#1]
[all …]
Dtest_suite_cipher.blowfish.data5 BLOWFISH Encrypt and decrypt 0 bytes [#1]
13 BLOWFISH Encrypt and decrypt 2 bytes [#1]
17 BLOWFISH Encrypt and decrypt 7 bytes [#1]
21 BLOWFISH Encrypt and decrypt 8 bytes [#1]
25 BLOWFISH Encrypt and decrypt 9 bytes [#1]
29 BLOWFISH Encrypt and decrypt 15 bytes [#1]
33 BLOWFISH Encrypt and decrypt 16 bytes [#1]
37 BLOWFISH Encrypt and decrypt 17 bytes [#1]
41 BLOWFISH Encrypt and decrypt 31 bytes [#1]
45 BLOWFISH Encrypt and decrypt 32 bytes [#1]
[all …]
Dtest_suite_cipher.des.data13 DES Encrypt and decrypt 0 bytes [#1]
21 DES Encrypt and decrypt 2 bytes
25 DES Encrypt and decrypt 7 bytes
29 DES Encrypt and decrypt 8 bytes
33 DES Encrypt and decrypt 9 bytes
37 DES Encrypt and decrypt 15 bytes
41 DES Encrypt and decrypt 16 bytes
45 DES Encrypt and decrypt 17 bytes
49 DES Encrypt and decrypt 31 bytes
53 DES Encrypt and decrypt 32 bytes [#1]
[all …]
/external/mbedtls/tests/suites/
Dtest_suite_cipher.camellia.data9 CAMELLIA Encrypt and decrypt 0 bytes [#1]
17 CAMELLIA Encrypt and decrypt 2 bytes [#1]
21 CAMELLIA Encrypt and decrypt 7 bytes [#1]
25 CAMELLIA Encrypt and decrypt 8 bytes [#1]
29 CAMELLIA Encrypt and decrypt 9 bytes [#1]
33 CAMELLIA Encrypt and decrypt 15 bytes [#1]
37 CAMELLIA Encrypt and decrypt 16 bytes [#1]
41 CAMELLIA Encrypt and decrypt 17 bytes [#1]
45 CAMELLIA Encrypt and decrypt 31 bytes [#1]
49 CAMELLIA Encrypt and decrypt 32 bytes [#1]
[all …]
Dtest_suite_cipher.des.data13 DES Encrypt and decrypt 0 bytes [#1]
21 DES Encrypt and decrypt 2 bytes
25 DES Encrypt and decrypt 7 bytes
29 DES Encrypt and decrypt 8 bytes
33 DES Encrypt and decrypt 9 bytes
37 DES Encrypt and decrypt 15 bytes
41 DES Encrypt and decrypt 16 bytes
45 DES Encrypt and decrypt 17 bytes
49 DES Encrypt and decrypt 31 bytes
53 DES Encrypt and decrypt 32 bytes [#1]
[all …]
/external/webrtc/rtc_base/memory/
Dfifo_buffer_unittest.cc26 size_t bytes; in TEST() local
32 EXPECT_EQ(SR_BLOCK, buf.Read(rtc::MakeArrayView(out, kSize), bytes, error)); in TEST()
33 EXPECT_TRUE(nullptr != buf.GetWriteBuffer(&bytes)); in TEST()
34 EXPECT_EQ(kSize, bytes); in TEST()
38 EXPECT_EQ(SR_SUCCESS, buf.Write(rtc::MakeArrayView(in, kSize), bytes, error)); in TEST()
39 EXPECT_EQ(kSize, bytes); in TEST()
42 EXPECT_EQ(SR_BLOCK, buf.Write(rtc::MakeArrayView(in, kSize), bytes, error)); in TEST()
45 EXPECT_EQ(SR_SUCCESS, buf.Read(rtc::MakeArrayView(out, kSize), bytes, error)); in TEST()
46 EXPECT_EQ(kSize, bytes); in TEST()
50 EXPECT_EQ(SR_BLOCK, buf.Read(rtc::MakeArrayView(out, kSize), bytes, error)); in TEST()
[all …]
/external/rust/crates/bytes/src/
Dbytes.rs21 /// `Bytes` is an efficient container for storing and operating on contiguous
25 /// `Bytes` values facilitate zero-copy network programming by allowing multiple
26 /// `Bytes` objects to point to the same underlying memory.
28 /// `Bytes` does not have a single implementation. It is an interface, whose
30 /// implementations of `Bytes`.
32 /// All `Bytes` implementations must fulfill the following requirements:
38 /// use bytes::Bytes;
40 /// let mut mem = Bytes::from("Hello world");
53 /// The `Bytes` struct itself is fairly small, limited to 4 `usize` fields used
55 /// `Bytes` handle has access to.
[all …]
/external/python/bumble/tests/
Dsmp_test.py27 return bytes(reversed(bytes.fromhex(hex_str)))
61 bytes.fromhex(private_A), bytes.fromhex(public_A_x), bytes.fromhex(public_A_y)
63 shared_key = key_a.dh(bytes.fromhex(public_B_x), bytes.fromhex(public_B_y))
64 assert shared_key == bytes.fromhex(dhkey)
67 bytes.fromhex(private_B), bytes.fromhex(public_B_x), bytes.fromhex(public_B_y)
69 shared_key = key_b.dh(bytes.fromhex(public_A_x), bytes.fromhex(public_A_y))
70 assert shared_key == bytes.fromhex(dhkey)
75 k = bytes(16)
89 k = bytes(16)
99 k = bytes.fromhex('2b7e1516 28aed2a6 abf71588 09cf4f3c')
[all …]
/external/nos/host/generic/nugget/proto/nugget/app/identity/
Didentity.proto89 bytes docType = 2;
90 bytes encryptedCredentialKeys = 3;
103 bytes publickey = 2;
109 bytes entryCounts = 2;
110 bytes docType = 3;
121 bytes readerCertificate = 2;
128 bytes mac = 2;
133 bytes accessControlProfileIds = 1;
144 bytes accessControlProfileIds = 1;
147 bytes content = 4;
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/
D1-1.c36 printf("a Bytes %i %s ", result, text); in main()
38 puts("Test Failed: \%a doesn't equal at least 3 bytes"); in main()
45 printf("A Bytes %i %s ", result, text); in main()
47 puts("Test Failed: \%A doesn't equal to 6 bytes"); in main()
54 printf("b Bytes %i %s ", result, text); in main()
56 puts("Test Failed: \%b doesn't equal to 3 bytes"); in main()
63 printf("B Bytes %i %s ", result, text); in main()
65 puts("Test Failed: \%B is less than3 bytes"); in main()
74 * printf("c Bytes %i %s ", result, text); in main()
76 * puts("Test Failed: \%c doesn't equal at least 30 bytes"); in main()
[all …]
/external/nos/host/generic/nugget/proto/nugget/app/keymaster/
Dkeymaster.proto171 bytes data = 1;
191 bytes client_id = 2;
192 bytes app_data = 3;
217 bytes client_id = 3;
218 bytes app_data = 4;
233 bytes not_before = 5; // strftime('%Y%m%d%H%M%SZ') [15 octects]
234 bytes not_after = 6; // strftime('%Y%m%d%H%M%SZ') [15 octects]
235 bytes caller_issuer_subj_name = 7;
241 bytes certificate_prologue = 3;
247 // bytes attestation_app_id = 2; // Unused, contained within params
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DReadableBuffers.java43 * Shortcut for {@code wrap(bytes, 0, bytes.length}.
45 public static ReadableBuffer wrap(byte[] bytes) { in wrap() argument
46 return new ByteArrayWrapper(bytes, 0, bytes.length); in wrap()
52 * @param bytes the byte array being wrapped.
56 public static ReadableBuffer wrap(byte[] bytes, int offset, int length) { in wrap() argument
57 return new ByteArrayWrapper(bytes, offset, length); in wrap()
64 public static ReadableBuffer wrap(ByteBuffer bytes) { in wrap() argument
65 return new ByteReadableBufferWrapper(bytes); in wrap()
70 * will contain no readable bytes.
75 byte[] bytes = new byte[length]; in readArray()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java30 * Unit test for {@link Bytes}.
44 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value)); in testHashCode()
49 assertFalse(Bytes.contains(EMPTY, (byte) 1)); in testContains()
50 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); in testContains()
51 assertFalse(Bytes.contains(ARRAY234, (byte) 1)); in testContains()
52 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)); in testContains()
53 assertTrue(Bytes.contains(ARRAY234, (byte) 2)); in testContains()
54 assertTrue(Bytes.contains(ARRAY234, (byte) 3)); in testContains()
55 assertTrue(Bytes.contains(ARRAY234, (byte) 4)); in testContains()
59 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)); in testIndexOf()
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DBytesTest.java30 * Unit test for {@link Bytes}.
44 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value)); in testHashCode()
49 assertFalse(Bytes.contains(EMPTY, (byte) 1)); in testContains()
50 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); in testContains()
51 assertFalse(Bytes.contains(ARRAY234, (byte) 1)); in testContains()
52 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)); in testContains()
53 assertTrue(Bytes.contains(ARRAY234, (byte) 2)); in testContains()
54 assertTrue(Bytes.contains(ARRAY234, (byte) 3)); in testContains()
55 assertTrue(Bytes.contains(ARRAY234, (byte) 4)); in testContains()
59 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)); in testIndexOf()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUBinary.java59 static boolean validate(ByteBuffer bytes) { in validate() argument
61 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate()
65 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate()
69 // For each item, there is one ToC entry (8 bytes) and a name string in validate()
70 // and a data item of at least 16 bytes. in validate()
72 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate()
75 if (!startsWithPackageName(bytes, getNameOffset(bytes, 0)) || in validate()
76 !startsWithPackageName(bytes, getNameOffset(bytes, count - 1))) { in validate()
82 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName() argument
86 if (bytes.get(start + i) != ICUData.PACKAGE_NAME.charAt(i)) { in startsWithPackageName()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUBinary.java55 static boolean validate(ByteBuffer bytes) { in validate() argument
57 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate()
61 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate()
65 // For each item, there is one ToC entry (8 bytes) and a name string in validate()
66 // and a data item of at least 16 bytes. in validate()
68 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate()
71 if (!startsWithPackageName(bytes, getNameOffset(bytes, 0)) || in validate()
72 !startsWithPackageName(bytes, getNameOffset(bytes, count - 1))) { in validate()
78 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName() argument
82 if (bytes.get(start + i) != ICUData.PACKAGE_NAME.charAt(i)) { in startsWithPackageName()
[all …]

12345678910>>...436