HomeSort by relevance Sort by last modified time
    Searched defs:bytes (Results 726 - 750 of 2455) sorted by null

<<21222324252627282930>>

  /external/google-breakpad/src/client/mac/handler/
dynamic_images.cc 83 // number of bytes from |address| to the end of the region.
159 // the memory! So, we'll try to read kMaxStringLength bytes
160 // (or as many bytes as we can until we reach the end of the vm region).
168 vector<uint8_t> bytes; local
169 if (ReadTaskMemory(target_task, address, (size_t)size_to_read, bytes) !=
173 return string(reinterpret_cast<const char*>(&bytes[0]));
180 // Reads an address range from another task. The bytes read will be returned
181 // in bytes, which will be resized as necessary.
185 vector<uint8_t> &bytes) {
207 bytes.resize(length)
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
LongsTest.java 208 Longs.fromByteArray(new byte[Longs.BYTES - 1]);
225 byte[] b = new byte[Longs.BYTES];
329 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
336 assertTrue(Arrays.equals(array, Longs.toArray(bytes)));
  /external/guava/guava-tests/test/com/google/common/hash/
HashCodeTest.java 46 (byte) 0x67, (byte) 0x45, (byte) 0x23, (byte) 0x01, // up to here, same bytes as above
49 0x89abcdef, 0x0123456789abcdefL, // asInt/asLong as above, due to equal eight first bytes
65 // expectedHashCodes must contain at least one hash code with 4 bytes
68 if (expected.bytes.length == 4) {
75 // expectedHashCodes must contain at least one hash code with 8 bytes
78 if (expected.bytes.length == 8) {
87 HashCode fromBytes = HashCode.fromBytes(expected.bytes);
93 byte[] bytes = new byte[] { (byte) 0xcd, (byte) 0xab, (byte) 0x00, (byte) 0x00 };
94 HashCode hashCode = HashCode.fromBytes(bytes);
101 bytes[0] = (byte) 0x00
386 final byte[] bytes; field in class:HashCodeTest.ExpectedHashCode
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ByteSourceTest.java 61 private static final byte[] bytes = newPreFilledByteArray(10000); field in class:ByteSourceTest
67 source = new TestByteSource(bytes);
81 assertArrayEquals(bytes, out.toByteArray());
85 assertEquals(bytes.length, source.size());
89 assertEquals(bytes.length, new TestByteSource(bytes, SKIP_THROWS).size());
92 assertEquals(bytes.length, new TestByteSource(bytes, AVAILABLE_ALWAYS_ZERO).size());
98 assertEquals(bytes.length, source.copyTo(out));
101 assertArrayEquals(bytes, out.toByteArray())
    [all...]
ByteStreamsTest.java 110 byte[] bytes = newPreFilledByteArray(100);
111 skipHelper(0, 0, new ByteArrayInputStream(bytes));
112 skipHelper(50, 50, new ByteArrayInputStream(bytes));
113 skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
114 skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
115 skipHelper(100, -1, new ByteArrayInputStream(bytes));
117 skipHelper(101, 0, new ByteArrayInputStream(bytes));
130 private static final byte[] bytes = field in class:ByteStreamsTest
144 ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
155 ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
DoublesTest.java 351 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
358 assertTrue(Arrays.equals(array, Doubles.toArray(bytes)));
FloatsTest.java 342 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
349 assertTrue(Arrays.equals(array, Floats.toArray(bytes)));
IntsTest.java 237 Ints.fromByteArray(new byte[Ints.BYTES - 1]);
254 byte[] b = new byte[Ints.BYTES];
368 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
375 assertTrue(Arrays.equals(array, Ints.toArray(bytes)));
LongsTest.java 219 Longs.fromByteArray(new byte[Longs.BYTES - 1]);
236 byte[] b = new byte[Longs.BYTES];
351 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
358 assertTrue(Arrays.equals(array, Longs.toArray(bytes)));
ShortsTest.java 260 byte[] b = new byte[Shorts.BYTES];
375 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
382 assertTrue(Arrays.equals(array, Shorts.toArray(bytes)));
  /external/icu/android_icu4j/src/main/java/android/icu/text/
StringPrep.java 196 // private static final int INDEX_TRIE_SIZE = 0; /* number of bytes in normalization trie */
260 private StringPrep(ByteBuffer bytes) throws IOException {
261 StringPrepDataReader reader = new StringPrepDataReader(bytes);
266 sprepTrie = new CharTrie(bytes, null);
268 //indexes[INDEX_MAPPING_DATA_SIZE] store the size of mappingData in bytes
314 ByteBuffer bytes = ICUBinary.getRequiredData(PROFILE_NAMES[profile] + ".spp"); local
315 if (bytes != null) {
317 instance = new StringPrep(bytes);
  /external/icu/android_icu4j/src/main/java/android/icu/util/
BytesTrie.java 34 * The BytesTrie object will not read more bytes than
40 * @param trieBytes Bytes array that contains the serialized trie.
78 private byte[] bytes; field in class:BytesTrie.State
91 state.bytes=bytes_;
108 if(bytes_==state.bytes && bytes_!=null && root_==state.root) {
155 * @return true if the input bytes/units so far are part of a matching string/byte sequence.
161 * @return true if there is a value for the input bytes/units so far.
296 // No further matching bytes.
303 // Match length+1 bytes.
313 // No further matching bytes
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
BytesTrieTest.java 58 bytes=new byte[s.length()];
59 for(int i=0; i<bytes.length; ++i) {
60 bytes[i]=(byte)s.charAt(i);
66 public byte[] bytes; field in class:BytesTrieTest.StringAndValue
132 // more than 256 bytes
487 builder_.add(item.bytes, item.bytes.length, item.value);
533 builder_.add(data[index].bytes, data[index].bytes.length, data[index].value);
544 logln("serialized trie size: "+trieBytes.remaining()+" bytes\n")
    [all...]
TrieMap.java 35 BYTES, CHARS
62 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>()
73 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>()
115 private byte[] bytes = new byte[3]; field in class:TrieMap.BytesTrieMap
134 int limit = ByteConverter.getBytes(c, bytes, 0);
135 result = limit == 1 ? bytesTrie.next(bytes[0]) : bytesTrie.next(bytes, 0, limit);
145 // byte[] bytes = new byte[3];
148 // int limit = ByteConverter.getBytes(c, bytes, 0);
150 // result = bytesTrie.next(bytes[j]&0xFF)
213 private byte[] bytes = new byte[3]; field in class:TrieMap.BytesTrieMap.BytesMatcher
276 byte[] bytes = new byte[200]; field in class:TrieMap.BytesBuilder
    [all...]
  /external/icu/icu4c/source/common/
ucnv_lmb.c 70 based, in that the bytes from 0x20 - 0x7F are almost exactly the
74 bytes from 0x20-0x7F are represented by the same single-byte values in LMBCS.
76 The general LMBCS code unit is from 1-3 bytes. We can describe the 3 bytes as
82 data bytes. The maximum size of a LMBCS chjaracter is 3 bytes:
86 The single-byte values from 0x20 to 0x7F are examples of single D1 bytes.
101 which national character standard is being used for the 'D' bytes.
121 character is one of those 12 values, you can interpret the remaining bytes of
123 ANSI bytes already are represented in single bytes, using one of the character
1201 char bytes[2]; local
    [all...]
  /external/icu/icu4c/source/test/cintltst/
custrtrn.c 884 static const uint8_t bytes[]={ 0xe0, 0xa5, 0x9c, 0 }; local
935 static const uint8_t bytes[]={ local
    [all...]
custrtst.c 1439 char bytes[40]; local
    [all...]
trie2test.c 374 uint32_t value, bytes; local
384 /* first a couple of trail bytes in lead position */
433 bytes=0;
436 bytes=(bytes<<8)|s[prev8++];
441 testName, (unsigned long)bytes, (long)c, (long)value, (long)values[i]);
445 testName, (unsigned long)bytes, (long)c, (long)(p-s), (long)i8);
463 bytes=0;
467 bytes=(bytes<<8)|s[k++]
    [all...]
udatatst.c 1199 const char *bytes; member in struct:__anon12974
    [all...]
  /external/icu/icu4c/source/test/intltest/
csdetest.cpp 140 char *bytes = NULL; local
145 bytes = NEW_ARRAY(char, length + 1);
146 source.extract(0, sLength, bytes, codepage);
149 return bytes;
152 static void freeBytes(char *bytes)
154 DELETE_ARRAY(bytes);
172 char *bytes = extractBytes(testString, codepage, byteLength); local
174 if (bytes == NULL) {
181 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status);
237 freeBytes(bytes);
328 char *bytes = extractBytes(s, "UTF-8", byteLength); local
428 char *bytes = extractBytes(s, "ISO-8859-1", byteLength); local
636 char *bytes = extractBytes(s1, "IBM424", bLength); local
726 char *bytes = extractBytes(s1, "IBM420", bLength); local
    [all...]
  /external/icu/icu4c/source/test/perf/ubrkperf/
ubrkperfold.cpp 587 // Figure out the lenght of the char and read the rest of the bytes
599 unsigned char bytes[10]; local
600 bytes[0] = (unsigned char)ch;
603 bytes[i] = fgetc(fFile);
604 if (bytes[i] < 0x80 || bytes[i] >= 0xc0) {
605 fprintf(stderr, "utf-8 encoded file %s contains corrupt data at offset %d. Expected %d bytes, byte %d is invalid. First byte is %02X\n", fName, ftell(fFile), nBytes, i, ch);
611 // Convert the bytes from the temp array to a Unicode char.
614 U8_NEXT_UNSAFE(bytes, i, cp);
705 // (The number of bytes read from file per loop iteration depends on external encoding.
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
StringPrep.java 211 // private static final int INDEX_TRIE_SIZE = 0; /* number of bytes in normalization trie */
276 private StringPrep(ByteBuffer bytes) throws IOException {
277 StringPrepDataReader reader = new StringPrepDataReader(bytes);
282 sprepTrie = new CharTrie(bytes, null);
284 //indexes[INDEX_MAPPING_DATA_SIZE] store the size of mappingData in bytes
331 ByteBuffer bytes = ICUBinary.getRequiredData(PROFILE_NAMES[profile] + ".spp"); local
332 if (bytes != null) {
334 instance = new StringPrep(bytes);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
BytesTrie.java 33 * The BytesTrie object will not read more bytes than
39 * @param trieBytes Bytes array that contains the serialized trie.
82 private byte[] bytes; field in class:BytesTrie.State
96 state.bytes=bytes_;
114 if(bytes_==state.bytes && bytes_!=null && root_==state.root) {
166 * @return true if the input bytes/units so far are part of a matching string/byte sequence.
173 * @return true if there is a value for the input bytes/units so far.
314 // No further matching bytes.
321 // Match length+1 bytes.
331 // No further matching bytes
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
BytesTrieTest.java 54 bytes=new byte[s.length()];
55 for(int i=0; i<bytes.length; ++i) {
56 bytes[i]=(byte)s.charAt(i);
62 public byte[] bytes; field in class:BytesTrieTest.StringAndValue
128 // more than 256 bytes
483 builder_.add(item.bytes, item.bytes.length, item.value);
529 builder_.add(data[index].bytes, data[index].bytes.length, data[index].value);
540 logln("serialized trie size: "+trieBytes.remaining()+" bytes\n")
    [all...]
TrieMap.java 34 BYTES, CHARS
61 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>()
72 Builder<V> result = style == Style.BYTES ? new BytesTrieMap.BytesBuilder<V>()
114 private byte[] bytes = new byte[3]; field in class:TrieMap.BytesTrieMap
133 int limit = ByteConverter.getBytes(c, bytes, 0);
134 result = limit == 1 ? bytesTrie.next(bytes[0]) : bytesTrie.next(bytes, 0, limit);
144 // byte[] bytes = new byte[3];
147 // int limit = ByteConverter.getBytes(c, bytes, 0);
149 // result = bytesTrie.next(bytes[j]&0xFF)
212 private byte[] bytes = new byte[3]; field in class:TrieMap.BytesTrieMap.BytesMatcher
275 byte[] bytes = new byte[200]; field in class:TrieMap.BytesBuilder
    [all...]

Completed in 506 milliseconds

<<21222324252627282930>>