Searched defs:bytes (Results 101 - 125 of 1230) sorted by relevance

1234567891011>>

/external/flac/libFLAC/
H A Dmemory.c40 void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address) argument
48 x = safe_malloc_add_2op_(bytes, /*+*/31);
68 x = safe_malloc_(bytes);
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
H A DByteArrayFetcher.java13 private final byte[] bytes; field in class:ByteArrayFetcher
16 public ByteArrayFetcher(byte[] bytes, String id) { argument
17 this.bytes = bytes;
23 return new ByteArrayInputStream(bytes);
/external/glide/library/src/main/java/com/bumptech/glide/util/
H A DByteArrayPool.java39 Log.d(TAG, "Created temp bytes");
45 public boolean releaseBytes(byte[] bytes) { argument
46 if (bytes.length != TEMP_BYTES_SIZE) {
54 tempQueue.offer(bytes);
H A DUtil.java9 private static final char[] sha256Chars = new char[64]; //32 bytes from sha-256 -> 64 hex chars
11 public static String sha256BytesToHex(byte[] bytes) { argument
12 return bytesToHex(bytes, sha256Chars);
17 private static String bytesToHex(byte[] bytes, char[] hexChars) { argument
19 for ( int j = 0; j < bytes.length; j++ ) {
20 v = bytes[j] & 0xFF;
/external/google-tv-pairing-protocol/cpp/src/polo/util/
H A Dpoloutil.cc22 const std::string PoloUtil::BytesToHexString(const uint8_t* bytes, argument
25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL);
34 uint8_t*& bytes) {
39 bytes = new uint8_t[length];
40 BN_bn2bin(bn, &bytes[0]);
46 uint8_t*& bytes) {
51 // Initialize the array to 0 so there will be leading null bytes if the
52 // number is less than 4 bytes long.
53 bytes = new uint8_t[4];
55 bytes[
33 HexStringToBytes(const std::string hex_string, uint8_t*& bytes) argument
45 IntToBigEndianBytes(uint32_t value, uint8_t*& bytes) argument
63 BigEndianBytesToInt( const uint8_t* bytes) argument
[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/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
H A DPoloUtil.java70 * Converts an array of bytes to a string of hexadecimal characters.
71 * Leading null bytes are preserved in the output.
77 * @param bytes the bytes to convert
80 public static String bytesToHexString(byte[] bytes) { argument
81 if (bytes == null || bytes.length == 0) {
84 BigInteger bigint = new BigInteger(1, bytes);
85 int formatLen = bytes.length * 2;
121 * Converts a 4-byte array of bytes t
[all...]
/external/icu/icu4c/source/common/unicode/
H A Dbytestriebuilder.h57 * The bytes will be copied; the builder does not keep
176 char *bytes; member in class:BytesTrieBuilder
/external/lldb/source/Core/
H A DInputReaderEZ.cpp19 const char *bytes,
24 bytes,
45 reader.GetUserInput().AppendString(bytes, bytes_len);
16 Callback_Impl(void *baton, InputReader &reader, lldb::InputReaderAction notification, const char *bytes, size_t bytes_len) argument
/external/llvm/include/llvm/Support/
H A DStreamableMemoryObject.h45 /// getExtent - Returns the size of the region in bytes. (The region is
48 /// May block until all bytes in the stream have been read
54 /// May block until (address - base) bytes have been read
61 /// readBytes - Tries to read a contiguous range of bytes from the
63 /// May block until (address - base + size) bytes have
65 /// not do partial reads - if size bytes cannot be read,
70 /// @param size - The number of bytes to copy.
72 /// and large enough to hold size bytes.
81 /// May block until (address - base + size) bytes have been read
89 /// May block until (address - base) bytes hav
154 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped], local
[all...]
/external/llvm/lib/Target/MSP430/
H A DMSP430MachineFunctionInfo.h27 /// stack frame in bytes.
43 void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; } argument
/external/ltrace/sysdeps/linux-gnu/
H A Dbreakpoint.c63 unsigned char *bytes = (unsigned char *)&a; local
65 sbp->orig_value[i * sizeof(long) + j] = bytes[j];
66 bytes[j] = break_insn[i * sizeof(long) + j];
113 unsigned char *bytes = (unsigned char *)&a; local
115 bytes[j] = sbp->orig_value[i * sizeof(long) + j];
/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.c71 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) argument
73 if (bytes < POOL_LARGE_ALLOC) {
76 if (pool->head + bytes > pool->end)
79 assert(pool->head + bytes <= pool->end);
83 pool->head += bytes;
88 struct memory_block * block = (struct memory_block*)malloc(bytes + sizeof(struct memory_block));
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
H A DDecoderSpecificInfo.java34 byte[] bytes; field in class:DecoderSpecificInfo
39 bytes = new byte[sizeOfInstance];
40 bb.get(bytes);
45 return bytes.length;
49 ByteBuffer out = ByteBuffer.wrap(bytes);
58 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
74 if (!Arrays.equals(bytes, that.bytes)) {
[all...]
H A DExtensionDescriptor.java36 byte[] bytes; field in class:ExtensionDescriptor
60 bytes = new byte[sizeOfInstance];
61 bb.get(bytes);
69 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
H A DExtensionProfileLevelDescriptor.java33 byte[] bytes; field in class:ExtensionProfileLevelDescriptor
38 bytes = new byte[getSize()];
39 bb.get(bytes);
47 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DInternal.java53 * To get around this, protoc instead embeds the UTF-8 bytes into the
59 * in each value. This is much less efficient than just embedding the bytes
62 * generates a string literal corresponding to the bytes. The easiest way
67 * So we have a string literal which represents a set of bytes which
72 public static String stringDefaultValue(String bytes) { argument
74 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
84 * Helper called by generated code to construct default values for bytes
87 * This is a lot like {@link #stringDefaultValue}, but for bytes fields.
89 * embed raw bytes as a string literal with ISO-8859-1 encoding.
91 public static ByteString bytesDefaultValue(String bytes) { argument
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
H A DInternalNano.java69 * To get around this, protoc instead embeds the UTF-8 bytes into the
75 * in each value. This is much less efficient than just embedding the bytes
78 * generates a string literal corresponding to the bytes. The easiest way
83 * So we have a string literal which represents a set of bytes which
88 public static String stringDefaultValue(String bytes) { argument
90 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
100 * Helper called by generated code to construct default values for bytes
103 * This is a lot like {@link #stringDefaultValue}, but for bytes fields.
105 * embed raw bytes as a string literal with ISO-8859-1 encoding.
107 public static byte[] bytesDefaultValue(String bytes) { argument
[all...]
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/sfntly/cpp/src/test/
H A Dopen_type_data_test.cc27 ByteVector bytes; local
29 bytes.push_back(TEST_OTF_DATA[i]);
31 ByteArrayPtr array = new MemoryByteArray(&(bytes[0]), bytes.size());
/external/skia/experimental/DrawingBoard/
H A DSkNetPipeController.cpp38 void SkNetPipeController::notifyWritten(size_t bytes) { argument
39 SkASSERT(fBytesWritten + bytes <= fBlockSize);
42 fStatus = fReader.playback((const char*)fBlock + fBytesWritten, bytes);
46 fBytesWritten += bytes;
47 fTotalWritten += bytes;
/external/skia/include/core/
H A DSkData.h20 * but the actual ptr that is returned (by data() or bytes()) is guaranteed
28 * Returns the number of bytes stored.
43 const uint8_t* bytes() const { function in class:SkData
49 * Returns the actual number of bytes copied, after clamping offset and
51 * only the computed number of bytes is returned.
74 * (a null-terminated array of bytes). The returned SkData will have size()
/external/skia/src/utils/mac/
H A DSkStream_mac.cpp20 static size_t get_bytes_proc(void* info, void* buffer, size_t bytes) { argument
22 return ((SkStream*)info)->read(buffer, bytes);
25 static off_t skip_forward_proc(void* info, off_t bytes) { argument
26 return ((SkStream*)info)->skip((size_t) bytes);
/external/smali/util/src/main/java/org/jf/util/
H A DRandomAccessFileInputStream.java54 @Override public int read(byte[] bytes) throws IOException { argument
56 int bytesRead = raf.read(bytes);
61 @Override public int read(byte[] bytes, int offset, int length) throws IOException { argument
63 int bytesRead = raf.read(bytes, offset, length);
/external/strace/
H A Dsock.c60 unsigned char *bytes; local
174 bytes = (unsigned char *) &ifr.ifr_hwaddr.sa_data;
176 bytes[0], bytes[1], bytes[2],
177 bytes[3], bytes[4], bytes[5]);

Completed in 368 milliseconds

1234567891011>>