Searched refs:bytes (Results 1 - 25 of 2342) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A D2005-07-26-UnionInitCrash.c3 union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0}; member in union:__anon18536
/external/chromium_org/crypto/
H A Drandom_unittest.cc13 // Currently, that means the bytes cannot be all the same (e.g. all zeros).
14 bool IsTrivial(const std::string& bytes) { argument
15 for (size_t i = 0; i < bytes.size(); i++) {
16 if (bytes[i] != bytes[0]) {
24 std::string bytes(16, '\0');
25 crypto::RandBytes(WriteInto(&bytes, bytes.size()), bytes.size());
26 EXPECT_TRUE(!IsTrivial(bytes));
[all...]
H A Drandom.cc11 void RandBytes(void *bytes, size_t length) { argument
15 base::RandBytes(bytes, length);
/external/chromium_org/third_party/skia/src/ports/
H A DSkDiscardableMemory_none.cpp11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { argument
12 return SkGetGlobalDiscardableMemoryPool()->create(bytes);
/external/skia/src/ports/
H A DSkDiscardableMemory_none.cpp11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { argument
12 return SkGetGlobalDiscardableMemoryPool()->create(bytes);
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DByteArrayByteInput.java21 private final byte[] bytes; field in class:ByteArrayByteInput
24 public ByteArrayByteInput(byte... bytes) { argument
25 this.bytes = bytes;
29 return bytes[position++];
/external/chromium_org/content/child/webcrypto/
H A Dcrypto_data.cc13 CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length) argument
14 : bytes_(bytes), byte_length_(byte_length) {}
16 CryptoData::CryptoData(const std::vector<unsigned char>& bytes) argument
17 : bytes_(bytes.size() ? &bytes[0] : NULL), byte_length_(bytes.size()) {}
19 CryptoData::CryptoData(const std::string& bytes) argument
20 : bytes_(bytes.size() ? reinterpret_cast<const unsigned char*>(bytes.data())
22 byte_length_(bytes
24 CryptoData(const blink::WebVector<unsigned char>& bytes) argument
[all...]
H A Dcrypto_data.h19 // Helper to pass around a range of immutable bytes. This is conceptually
29 CryptoData(const unsigned char* bytes, unsigned int byte_length);
33 explicit CryptoData(const std::vector<unsigned char>& bytes);
34 explicit CryptoData(const std::string& bytes);
35 explicit CryptoData(const blink::WebVector<unsigned char>& bytes);
37 const unsigned char* bytes() const { return bytes_; } function in class:content::webcrypto::CryptoData
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bytes/
H A DBytesResource.java1 package com.bumptech.glide.load.resource.bytes;
6 private byte[] bytes; field in class:BytesResource
8 public BytesResource(byte[] bytes) { argument
9 this.bytes = bytes;
14 return bytes;
19 return bytes.length;
/external/conscrypt/src/main/java/org/conscrypt/
H A DByteArray.java25 private final byte[] bytes; field in class:ByteArray
28 ByteArray(byte[] bytes) { argument
29 this.bytes = bytes;
30 this.hashCode = Arrays.hashCode(bytes);
44 return Arrays.equals(bytes, lhs.bytes);
/external/guava/guava/src/com/google/common/hash/
H A DHashCodes.java26 * Creates a 32-bit {@code HashCode}, of which the bytes will form the passed int, interpreted
62 * Creates a 64-bit {@code HashCode}, of which the bytes will form the passed long, interpreted
106 static HashCode fromBytes(byte[] bytes) { argument
107 return new BytesHashCode(bytes);
111 final byte[] bytes; field in class:HashCodes.BytesHashCode
113 BytesHashCode(byte[] bytes) { argument
114 this.bytes = bytes;
118 return bytes.length * 8;
122 return bytes
[all...]
/external/chromium_org/base/
H A Dguid_posix.cc33 std::string RandomDataToGUIDString(const uint64 bytes[2]) { argument
35 static_cast<unsigned int>(bytes[0] >> 32),
36 static_cast<unsigned int>((bytes[0] >> 16) & 0x0000ffff),
37 static_cast<unsigned int>(bytes[0] & 0x0000ffff),
38 static_cast<unsigned int>(bytes[1] >> 48),
39 bytes[1] & 0x0000ffffffffffffULL);
/external/valgrind/main/memcheck/tests/
H A Dleak-0.stderr.exp1 leaked: 0 bytes in 0 blocks
2 dubious: 0 bytes in 0 blocks
3 reachable: 0 bytes in 1 blocks
4 suppressed: 0 bytes in 0 blocks
H A Dleak-cases-summary.stderr.exp1 leaked: 80 bytes in 5 blocks
2 dubious: 96 bytes in 6 blocks
3 reachable: 64 bytes in 4 blocks
4 suppressed: 0 bytes in 0 blocks
H A Derror_counts.stderr.exp7 leaked: 0 bytes in 0 blocks
8 dubious: 0 bytes in 0 blocks
9 reachable: 0 bytes in 0 blocks
10 suppressed: 0 bytes in 0 blocks
14 leaked: 77 bytes in 1 blocks
15 dubious: 88 bytes in 1 blocks
16 reachable: 99 bytes in 1 blocks
17 suppressed: 0 bytes in 0 blocks
/external/chromium_org/components/rappor/
H A Dbloom_filter_unittest.cc16 EXPECT_EQ(1u, filter.bytes().size());
17 EXPECT_EQ(0x00, filter.bytes()[0]);
21 EXPECT_EQ(0x2a, filter.bytes()[0]);
25 EXPECT_EQ(0x2a, filter.bytes()[0]);
28 EXPECT_EQ(0x00, filter2.bytes()[0]);
30 EXPECT_EQ(0xa8, filter2.bytes()[0]);
34 EXPECT_EQ(0xa8, filter.bytes()[0]);
43 EXPECT_EQ(500u, filter.bytes().size());
44 EXPECT_EQ(0, CountBits(filter.bytes()));
47 EXPECT_EQ(1, CountBits(filter.bytes()));
[all...]
/external/google-tv-pairing-protocol/cpp/tests/polo/util/
H A Dpoloutiltest.cc22 uint8_t bytes[4] = {0xAA, 0xBB, 0xCC, 0xDD}; local
23 std::string result = PoloUtil::BytesToHexString(bytes, 4);
28 uint8_t bytes[4] = {0x00, 0xBB, 0xCC, 0xDD}; local
29 std::string result = PoloUtil::BytesToHexString(bytes, 4);
34 uint8_t* bytes; local
35 size_t length = PoloUtil::HexStringToBytes(std::string("AABBCCDD"), bytes);
37 ASSERT_EQ(0xAA, bytes[0]);
38 ASSERT_EQ(0xBB, bytes[1]);
39 ASSERT_EQ(0xCC, bytes[2]);
40 ASSERT_EQ(0xDD, bytes[
45 uint8_t* bytes; local
55 uint8_t* bytes; local
65 uint8_t bytes[4] = {0xAA, 0xBB, 0xCC, 0xDD}; local
71 uint8_t bytes[4] = {0x00, 0xAA, 0xBB, 0x00}; local
[all...]
/external/elfutils/0.153/libdw/
H A Ddwarf_next_cfi.c84 const uint8_t *bytes = data->d_buf + off; local
90 uint64_t length = read_4ubyte_unaligned_inc (&dw, bytes);
96 if (unlikely (limit - bytes < 8))
102 length = read_8ubyte_unaligned_inc (&dw, bytes);
104 if (unlikely ((uint64_t) (limit - bytes) < length)
114 limit = bytes + length;
116 const uint8_t *const cie_pointer_start = bytes;
118 entry->cie.CIE_id = read_8ubyte_unaligned_inc (&dw, bytes);
121 entry->cie.CIE_id = read_4ubyte_unaligned_inc (&dw, bytes);
146 uint8_t version = *bytes
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DByteString.java42 * Immutable array of bytes.
48 private final byte[] bytes; field in class:ByteString
50 private ByteString(final byte[] bytes) { argument
51 this.bytes = bytes;
60 return bytes[index];
64 * Gets the number of bytes.
67 return bytes.length;
74 return bytes.length == 0;
86 * Copies the given bytes int
88 copyFrom(final byte[] bytes, final int offset, final int size) argument
98 copyFrom(final byte[] bytes) argument
106 copyFrom(final ByteBuffer bytes, final int size) argument
116 copyFrom(final ByteBuffer bytes) argument
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
H A DByteStringMicro.java36 * Immutable array of bytes.
42 private final byte[] bytes; field in class:ByteStringMicro
44 private ByteStringMicro(final byte[] bytes) { argument
45 this.bytes = bytes;
54 return bytes[index];
58 * Gets the number of bytes.
61 return bytes.length;
68 return bytes.length == 0;
80 * Copies the given bytes int
82 copyFrom(final byte[] bytes, final int offset, final int size) argument
92 copyFrom(final byte[] bytes) argument
[all...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSProcessableByteArray.java19 private final byte[] bytes; field in class:CMSProcessableByteArray
22 byte[] bytes)
24 this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes);
29 byte[] bytes)
32 this.bytes = bytes;
37 return new ByteArrayInputStream(bytes);
43 zOut.write(bytes);
48 return Arrays.clone(bytes);
21 CMSProcessableByteArray( byte[] bytes) argument
27 CMSProcessableByteArray( ASN1ObjectIdentifier type, byte[] bytes) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9IntegerConverter.java26 byte[] bytes = s.toByteArray();
28 if (qLength < bytes.length)
32 System.arraycopy(bytes, bytes.length - tmp.length, tmp, 0, tmp.length);
36 else if (qLength > bytes.length)
40 System.arraycopy(bytes, 0, tmp, tmp.length - bytes.length, bytes.length);
45 return bytes;
/external/chromium_org/third_party/leveldatabase/src/util/
H A Darena.h20 // Return a pointer to a newly allocated memory block of "bytes" bytes.
21 char* Allocate(size_t bytes);
24 char* AllocateAligned(size_t bytes);
34 char* AllocateFallback(size_t bytes);
52 inline char* Arena::Allocate(size_t bytes) { argument
56 assert(bytes > 0);
57 if (bytes <= alloc_bytes_remaining_) {
59 alloc_ptr_ += bytes;
60 alloc_bytes_remaining_ -= bytes;
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
H A DUnknownFieldData.java45 final byte[] bytes; field in class:UnknownFieldData
47 UnknownFieldData(int tag, byte[] bytes) { argument
49 this.bytes = bytes;
55 size += bytes.length;
61 output.writeRawBytes(bytes);
74 return tag == other.tag && Arrays.equals(bytes, other.bytes);
81 result = 31 * result + Arrays.hashCode(bytes);
/external/javassist/sample/hotswap/
H A DTest.java10 byte[] bytes = new byte[(int)newfile.length()];
11 new FileInputStream(newfile).read(bytes);
14 hs.reload("HelloWorld", bytes);
18 bytes = new byte[(int)newfile.length()];
19 new FileInputStream(newfile).read(bytes);
22 hs.reload("HelloWorld", bytes);

Completed in 1148 milliseconds

1234567891011>>