/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/util/ |
H A D | ASN1Dump.java | 354 private static String dumpBinaryDataAsString(String indent, byte[] bytes) argument 362 for (int i = 0; i < bytes.length; i += SAMPLE_SIZE) 364 if (bytes.length - i > SAMPLE_SIZE) 367 buf.append(new String(Hex.encode(bytes, i, SAMPLE_SIZE))); 369 buf.append(calculateAscString(bytes, i, SAMPLE_SIZE)); 375 buf.append(new String(Hex.encode(bytes, i, bytes.length - i))); 376 for (int j = bytes.length - i; j != SAMPLE_SIZE; j++) 381 buf.append(calculateAscString(bytes, i, bytes 389 calculateAscString(byte[] bytes, int off, int len) argument [all...] |
/external/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 70 int bytes = 0; local 74 ++bytes; 76 return bytes; 175 /// This function takes a raw source line and produces a mapping from the bytes 184 /// If a byte is the first in a sequence of bytes that together map to a single 186 /// column while the subsequent bytes will be -1. 195 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to 223 /// The last element in the array is the number of bytes in the source string 229 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to 269 int bytes() cons [all...] |
/external/deqp/executor/ |
H A D | xeBatchResult.cpp | 40 void InfoLog::append (const deUint8* bytes, int numBytes) argument 45 deMemcpy(&m_data[oldSize], bytes, numBytes);
|
H A D | xeTestCaseListParser.cpp | 79 void TestCaseListParser::parse (const deUint8* bytes, int numBytes) argument 82 m_xmlParser.feed(bytes, numBytes);
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
H A D | Output.java | 27 * bytes written to this instance. 76 * @return {@code 1..5;} the number of bytes actually written 86 * @return {@code 1..5;} the number of bytes actually written 93 * @param bytes {@code non-null;} the array to write 95 public void write(ByteArray bytes); argument 100 * @param bytes {@code non-null;} the array to write 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); argument 109 * a convenient shorthand for {@code write(bytes, 113 write(byte[] bytes) argument [all...] |
/external/dhcpcd/ |
H A D | bpf.c | 167 ssize_t bytes; local 180 bytes = read(fd, iface->buffer, iface->buffer_size); 181 if (bytes == -1) 183 else if ((size_t)bytes < sizeof(packet)) 185 iface->buffer_len = bytes; 188 bytes = -1; 197 bytes = packet.bh_caplen - ETHER_HDR_LEN; 198 if (bytes > len) 199 bytes = len; 200 memcpy(data, payload, bytes); [all...] |
H A D | control.c | 76 ssize_t bytes; local 81 bytes = read(l->fd, buffer, sizeof(buffer) - 1); 82 if (bytes == -1 || bytes == 0) { 86 buffer[bytes] = '\0'; 88 e = buffer + bytes;
|
/external/e2fsprogs/lib/blkid/ |
H A D | getsize.c | 54 #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */ 73 * Returns the number of bytes in a partition 195 long long bytes; local 207 bytes = blkid_get_dev_size(fd); 209 (unsigned long long)bytes >> 10);
|
/external/emma/core/java12/com/vladium/jcd/cls/ |
H A D | Field_info.java | 75 final UDataInputStream bytes) 78 m_access_flags = bytes.readU2 (); 80 m_name_index = bytes.readU2 (); 81 m_descriptor_index = bytes.readU2 (); 84 final int attributes_count = bytes.readU2 (); 89 final Attribute_info attribute_info = Attribute_info.new_Attribute_info (constants, bytes); 74 Field_info(final IConstantCollection constants, final UDataInputStream bytes) argument
|
/external/emma/core/java12/com/vladium/jcd/cls/attribute/ |
H A D | ConstantValueAttribute_info.java | 121 final UDataInputStream bytes) 126 m_value_index = bytes.readU2 (); 120 ConstantValueAttribute_info(final int attribute_name_index, final long attribute_length, final UDataInputStream bytes) argument
|
H A D | InnerClassesAttribute_info.java | 142 final UDataInputStream bytes) 147 final int class_count = bytes.readU2 (); 152 classes.add (new InnerClass_info (bytes)); 141 InnerClassesAttribute_info(final int attribute_name_index, final long attribute_length, final UDataInputStream bytes) argument
|
H A D | LineNumberTableAttribute_info.java | 165 final UDataInputStream bytes) 170 final int lines_count = bytes.readU2 (); 175 m_lines.add (new LineNumber_info (bytes)); 164 LineNumberTableAttribute_info(final int attribute_name_index, final long attribute_length, final UDataInputStream bytes) argument
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
H A D | CONSTANT_NameAndType_info.java | 93 protected CONSTANT_NameAndType_info (final UDataInputStream bytes) throws IOException argument 95 m_name_index = bytes.readU2 (); 96 m_descriptor_index = bytes.readU2 ();
|
/external/emma/core/java12/com/vladium/jcd/parser/ |
H A D | ClassDefParser.java | 36 public static ClassDef parseClass (final byte [] bytes) argument 39 if (bytes == null) throw new IllegalArgumentException ("null input: bytes"); 41 classParser parser = new classParser (new UDataInputStream (new ByteArrayIStream (bytes))); 49 public static ClassDef parseClass (final byte [] bytes, final int length) argument 52 if (bytes == null) throw new IllegalArgumentException ("null input: bytes"); 54 classParser parser = new classParser (new UDataInputStream (new ByteArrayIStream (bytes, length))); 63 public static ClassDef parseClass (final InputStream bytes) argument 66 if (bytes 93 classParser(final UDataInputStream bytes) argument [all...] |
/external/flac/libFLAC/ |
H A D | ogg_decoder_aspect.c | 105 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data) argument 108 const size_t bytes_requested = *bytes; 121 * the same number of bytes from Ogg, then pass what's decoded down to 133 * to read in enough pages to return the full number of bytes 136 *bytes = 0; 137 while (*bytes < bytes_requested && !aspect->end_of_stream) { 140 size_t n = bytes_requested - *bytes; 141 if ((size_t)aspect->working_packet.bytes <= n) { 143 n = aspect->working_packet.bytes; 145 *bytes [all...] |
H A D | ogg_encoder_aspect.c | 111 FLAC__StreamEncoderWriteStatus FLAC__ogg_encoder_aspect_write_callback_wrapper(FLAC__OggEncoderAspect *aspect, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, FLAC__bool is_last_block, FLAC__OggEncoderAspectWriteCallbackProxy write_callback, void *encoder, void *client_data) argument 141 if(bytes != FLAC__STREAM_METADATA_HEADER_LENGTH + FLAC__STREAM_METADATA_STREAMINFO_LENGTH) { 170 memcpy(b, buffer, bytes); 171 FLAC__ASSERT(b + bytes - synthetic_first_packet_body == sizeof(synthetic_first_packet_body)); 173 packet.bytes = sizeof(synthetic_first_packet_body); 180 packet.bytes = bytes; 212 else if(is_metadata && current_frame == 0 && samples == 0 && bytes == 4 && 0 == memcmp(buffer, FLAC__STREAM_SYNC_STRING, sizeof(FLAC__STREAM_SYNC_STRING))) {
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
H A D | Util.java | 16 // 32 bytes from sha-256 -> 64 hex chars. 18 // 20 bytes from sha-1 -> 40 chars. 28 public static String sha256BytesToHex(byte[] bytes) { argument 29 return bytesToHex(bytes, SHA_256_CHARS); 35 public static String sha1BytesToHex(byte[] bytes) { argument 36 return bytesToHex(bytes, SHA_1_CHARS); 41 private static String bytesToHex(byte[] bytes, char[] hexChars) { argument 43 for (int j = 0; j < bytes.length; j++) { 44 v = bytes[j] & 0xFF; 65 * Returns the in memory size of the given {@link Bitmap} in bytes [all...] |
/external/google-breakpad/src/third_party/libdisasm/ |
H A D | x86_disasm.c | 20 unsigned char bytes[MAX_INSTRUCTION_SIZE]; local 44 /* copy enough bytes for disassembly into buffer : this 46 memset( bytes, 0, MAX_INSTRUCTION_SIZE ); 47 memcpy( bytes, &buf[offset], (len < MAX_INSTRUCTION_SIZE) ? len : 52 size = ia32_disasm_addr( bytes, len, insn); 63 MAKE_INVALID( insn, bytes ); 67 /* fill bytes field of insn */ 68 memcpy( insn->bytes, bytes, size ); 77 unsigned int buf_len, size, count = 0, bytes local 135 unsigned int size, count = 0, bytes = 0, cont = 1; local [all...] |
/external/guava/guava/src/com/google/common/hash/ |
H A D | AbstractByteHasher.java | 31 * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code 32 * ByteBuffer} and streams all bytes to a sink to compute the hash. 46 * Updates this hasher with the given bytes. 53 * Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. 68 public Hasher putBytes(byte[] bytes) { argument 69 checkNotNull(bytes); 70 update(bytes); 75 public Hasher putBytes(byte[] bytes, int off, int len) { argument 76 checkPositionIndexes(off, off + len, bytes.length); 77 update(bytes, of 84 update(int bytes) argument [all...] |
H A D | PrimitiveSink.java | 38 * Puts an array of bytes into this sink. 40 * @param bytes a byte array 43 PrimitiveSink putBytes(byte[] bytes); argument 46 * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written, 47 * {@code bytes[off + len - 1]} is the last. 49 * @param bytes a byte array 51 * @param len the number of bytes to write 53 * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or 56 PrimitiveSink putBytes(byte[] bytes, in argument [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | AbstractByteHasherTest.java | 71 byte[] bytes = new byte[64]; 72 random.nextBytes(bytes); 73 String s = new String(bytes, UTF_16LE.name()); // so all random strings are valid 128 byte[] bytes() { method in class:AbstractByteHasherTest.TestHasher 133 assertArrayEquals(expected, bytes()); 138 return HashCode.fromBytesNoCopy(bytes());
|
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | ByteSinkTester.java | 59 byte[] bytes; 61 bytes = string.getBytes(Charsets.UTF_8.name()); 65 TestSuite suite = suiteForBytes(name, factory, desc, bytes); 73 String desc, byte[] bytes) { 76 suite.addTest(new ByteSinkTester(factory, bytes, name, desc, method)); 72 suiteForBytes(String name, ByteSinkFactory factory, String desc, byte[] bytes) argument
|
/external/icu/icu4c/source/samples/uciter8/ |
H A D | uciter8.c | 298 static const uint8_t bytes[]={ local 313 uiter_setLenient8(&iter2, (const char *)bytes, sizeof(bytes)-1); 317 uiter_setLenient8(&iter2, (const char *)bytes, -1); 322 uiter_setLenient8(&iter1, (const char*)bytes, -1);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | UConverterAliasDataReader.java | 20 * units, and not to the bytes (uint8_t units). Addressing everything on 130 * @param bytes ICU uprop.dat file buffer 133 protected UConverterAliasDataReader(ByteBuffer bytes) argument 135 //if(debug) System.out.println("Bytes in buffer " + bytes.remaining()); 137 byteBuffer = bytes;
|
H A D | UConverterDataReader.java | 30 * min/max bytes per character, etc. 53 * Offsets are counted in bytes from the beginning of the MBCS header structure. 71 * counts bytes in fromUBytes[] 115 * -- DBCS, MBCS, EBCDIC_STATEFUL, ... 2/3/4 bytes result, see ucnvmbcs.c 177 * of UChars or bytes in a mapping to 198 * Each index to another array is the number of bytes from indexes[]. 229 * [17] Bit field containing numbers of bytes: 231 * 23..16 maximum input bytes 232 * 15.. 8 maximum output bytes 233 * 7.. 0 maximum bytes pe 430 UConverterDataReader(ByteBuffer bytes) argument [all...] |