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

<<21222324252627282930>>

  /external/google-breakpad/src/processor/
minidump_unittest.cc 100 vector<char> bytes; local
103 bytes.resize(file_stream.tellg());
106 file_stream.read(&bytes[0], bytes.size());
108 string str(&bytes[0], bytes.size());
    [all...]
  /external/google-breakpad/src/third_party/libdisasm/
ia32_invariant.c 146 int x, type, bytes = 0, size = 0, modrm = 0; local
208 bytes += ia32_invariant_modrm( buf, out,
219 memset( &out[bytes + modrm], X86_WILDCARD_BYTE,
221 bytes += size;
232 memset( &out[bytes + modrm],
235 memcpy( &out[bytes + modrm],
236 &buf[bytes + modrm], size );
239 bytes += size;
276 return (bytes + modrm);
293 /* copy opcode bytes to buffer *
    [all...]
  /external/guava/guava/src/com/google/common/hash/
HashCode.java 48 * Returns the first four bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to
56 * Returns the first eight bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to
65 * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
66 * most-significant bytes.
81 * Copies bytes from this hash code into {@code dest}.
85 * @param maxLength the maximum number of bytes to write
86 * @return the number of bytes written to {@code dest}
99 * Returns a mutable view of the underlying bytes for the given {@code HashCode} if it is
258 final byte[] bytes; field in class:HashCode.BytesHashCode
    [all...]
  /external/guava/guava/src/com/google/common/io/
ByteSource.java 42 * A readable source of bytes, such as a file. Unlike an {@link InputStream}, a
69 * Returns a {@link CharSource} view of this byte source that decodes bytes read from this source
106 * Returns a view of a slice of this byte source that is at most {@code length} bytes long
116 * Returns whether the source has zero bytes. The default implementation is to open a stream and
135 * Returns the size of this source in bytes. For most implementations, this is a heavyweight
137 * to the end of the stream and return the total number of bytes that were read.
141 * bytes than would be returned by reading all of the bytes (for example, some special files may
145 * the same number of bytes a subsequent read would return.
172 * Counts the bytes in the given input stream using skip if possible. Returns SKIP_FAILED if th
492 protected final byte[] bytes; field in class:ByteSource.ByteArrayByteSource
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
BytesTest.java 30 * Unit test for {@link Bytes}.
46 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value));
51 assertFalse(Bytes.contains(EMPTY, (byte) 1));
52 assertFalse(Bytes.contains(ARRAY1, (byte) 2));
53 assertFalse(Bytes.contains(ARRAY234, (byte) 1));
54 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1));
55 assertTrue(Bytes.contains(ARRAY234, (byte) 2));
56 assertTrue(Bytes.contains(ARRAY234, (byte) 3));
57 assertTrue(Bytes.contains(ARRAY234, (byte) 4));
61 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1))
204 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
BytesTest.java 32 * Unit test for {@link Bytes}.
48 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value));
53 assertFalse(Bytes.contains(EMPTY, (byte) 1));
54 assertFalse(Bytes.contains(ARRAY1, (byte) 2));
55 assertFalse(Bytes.contains(ARRAY234, (byte) 1));
56 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1));
57 assertTrue(Bytes.contains(ARRAY234, (byte) 2));
58 assertTrue(Bytes.contains(ARRAY234, (byte) 3));
59 assertTrue(Bytes.contains(ARRAY234, (byte) 4));
63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1))
206 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local
    [all...]
  /external/harfbuzz_ng/test/api/
test-buffer.c 383 unsigned int bytes, chars, i, j, len; local
397 bytes = strlen (test->utf8);
402 hb_buffer_add_utf8 (b, test->utf8, bytes, 1, bytes - 2);
475 /* continuation bytes */
613 /* missing continuation bytes */
624 /* impossible bytes */
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
UPropertyAliases.java 78 private void load(ByteBuffer bytes) throws IOException {
79 //dataVersion=ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, IS_ACCEPTABLE);
80 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE);
81 int indexesLength=bytes.getInt()/4; // inIndexes[IX_VALUE_MAPS_OFFSET]/4
88 inIndexes[i]=bytes.getInt();
95 valueMaps=ICUBinary.getInts(bytes, numInts, 0);
102 bytes.get(bytesTries);
104 // Read the nameGroups and turn them from ASCII bytes into a Java String.
110 sb.append((char)bytes.get());
116 ByteBuffer bytes = ICUBinary.getRequiredData("pnames.icu") local
    [all...]
UResource.java 30 // Stores a reference to the resource bundle key string bytes array,
35 private byte[] bytes; field in class:UResource.Key
46 bytes = keyBytes;
53 * The corresponding ASCII-character bytes are not copied and
62 bytes = keyBytes;
72 bytes = null;
93 return (char)bytes[offset + i];
105 return new Key(bytes, offset + start, end - start);
121 sb.append((char)bytes[offset + i]);
145 if (bytes[offset + i] != otherBytes[otherOffset + i])
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
CoverageTest.java 70 private void writeFile(String className, byte bytes[])
76 stream.write(bytes);
89 private void add(String className, int classModifiers, byte bytes[])
91 CoverageTarget newTarget = new CoverageTarget(className, classModifiers, bytes);
99 private byte bytes[]; field in class:CoverageTest.CoverageTarget
102 public CoverageTarget(String className, int classModifiers, byte bytes[])
104 super(className, bytes == null? null : new ByteArrayInputStream(bytes));
106 this.bytes = bytes;
    [all...]
  /external/icu/icu4c/source/common/
ucnv_u16.c 112 /* copy an even number of bytes for complete UChars */
183 length=2; /* 2 bytes to output */
196 length=0; /* from here on, length counts the bytes in overflow[] */
215 length=4; /* 4 bytes to output */
232 /* output length bytes with overflow (length>targetCapacity>0) */
317 /* continue collecting bytes for the trail surrogate */
356 * used for the lead unit's bytes
374 /* copy an even number of bytes for complete UChars */
536 /* too few (2 or 3) bytes for a surrogate pair: truncated code point */
537 uint8_t *bytes=pArgs->converter->toUBytes local
554 uint8_t *bytes=pArgs->converter->toUBytes; local
1133 uint8_t *bytes=pArgs->converter->toUBytes; local
1150 uint8_t *bytes=pArgs->converter->toUBytes; local
    [all...]
ucnv_u7.c 214 uint8_t *bytes; local
244 bytes=cnv->toUBytes;
271 bytes[0]=b;
304 * base64 bytes, while nextSourceIndex is precisely parallel to source,
310 bytes[byteIndex++]=b=*source++;
332 bytes[0]=PLUS;
357 /* collect base64 bytes into UChars */
377 bytes[0]=b; /* keep this byte in case an error occurs */
388 bytes[0]=b; /* keep this byte in case an error occurs */
587 * Output 2 or 3 base64 bytes for the remaining bits of the previous characte
893 uint8_t *bytes; local
    [all...]
  /external/icu/icu4c/source/common/unicode/
bytestrie.h 55 * The BytesTrie object will not read more bytes than
106 State() { bytes=NULL; }
110 const uint8_t *bytes; member in class:BytesTrie::State
123 state.bytes=bytes_;
140 if(bytes_==state.bytes && bytes_!=NULL) {
233 * @return the number of bytes which continue the byte sequence from here
246 * @param trieBytes The trie bytes.
432 // encode match values or continue matching further bytes.
439 // - Linear-match node: Matches a number of bytes.
441 // The node byte is the length of the branch (number of bytes to select from
    [all...]
  /external/icu/icu4c/source/i18n/
collationkeys.cpp 28 SortKeyByteSink::Append(const char *bytes, int32_t n) {
29 if (n <= 0 || bytes == NULL) {
38 bytes += ignore_;
45 if ((buffer_ + length) == bytes) {
46 return; // the caller used GetAppendBuffer() and wrote the bytes already
50 uprv_memcpy(buffer_ + length, bytes, n);
52 AppendBeyondCapacity(bytes, n, length);
67 // Do not write ignored bytes right at the end of the buffer.
148 uint8_t bytes[4] = { (uint8_t)(w >> 24), (uint8_t)(w >> 16), (uint8_t)(w >> 8), (uint8_t)w }; local
149 int32_t appendLength = (bytes[1] == 0) ? 1 : (bytes[2] == 0) ? 2 : (bytes[3] == 0) ? 3 : 4
    [all...]
  /external/icu/icu4c/source/test/cintltst/
ucsdetst.c 75 char *bytes = NEW_ARRAY(char, byteCount + 1); local
76 char *dest = bytes, *destLimit = bytes + byteCount + 1;
82 return bytes;
85 static void freeBytes(char *bytes)
87 DELETE_ARRAY(bytes);
125 char *bytes; local
131 bytes = extractBytes(s, sLength, "UTF-8", &byteLength);
133 ucsdet_setText(csd, bytes, byteLength, &status);
155 freeBytes(bytes);
287 char *bytes; local
475 char *bytes = extractBytes(chars, cLength, "IBM424", &bLength); local
553 char *bytes = extractBytes(chars, cLength, "IBM420", &bLength); local
    [all...]
  /external/icu/icu4c/source/test/intltest/
tscoll.cpp 368 const uint8_t *bytes = source.getByteArray(byteCount); local
378 appendHex(bytes[i], 2, target);
uobjtest.cpp 510 char *bytes = stackMemory.bytes_; local
514 p=new(bytes) UnicodeString(len, (UChar32)0x20ac, len);
515 if((void *)p!=(void *)bytes) {
556 UnicodeString::operator delete(p, bytes);
  /external/icu/icu4c/source/tools/makeconv/
makeconv.cpp 161 fprintf(stderr, "error: wrote %u bytes to the .cnv file but counted %u bytes\n", (int)sz2, (int)size);
166 printf("- Wrote %u bytes to the udata.\n", (int)sz2);
457 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
461 length=ucm_parseBytes(bytes, line, (const char **)&s);
464 uprv_memcpy(staticData->subChar, bytes, length);
471 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local
474 if(1==ucm_parseBytes(bytes, line, (const char **)&s) && *s==0) {
475 staticData->subChar1=bytes[0];
818 if(!MBCSOkForBaseFromUnicode(mbcsData, m->b.bytes, m->bLen, m->u, m->f))
    [all...]
  /external/icu/icu4c/source/tools/toolutil/
ucm.h 41 * b if bLen<=4: up to 4 bytes
42 * else index to bLen bytes
44 * bLen number of words containing left-justified bytes
45 * bIsMultipleChars indicates that the bytes contain more than one sequence
55 uint8_t bytes[4]; member in union:UCMapping::__anon13136
75 uint8_t *bytes; member in struct:UCMTable
78 /* index map for mapping by bytes first */
115 (((m)->bLen<=4) ? (m)->b.bytes : (t)->bytes+(m)->b.idx)
129 /* @return -1 illegal bytes 0 suitable for base table 1 needs to go into extension table *
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
UPropertyAliases.java 77 private void load(ByteBuffer bytes) throws IOException {
78 //dataVersion=ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, IS_ACCEPTABLE);
79 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE);
80 int indexesLength=bytes.getInt()/4; // inIndexes[IX_VALUE_MAPS_OFFSET]/4
87 inIndexes[i]=bytes.getInt();
94 valueMaps=ICUBinary.getInts(bytes, numInts, 0);
101 bytes.get(bytesTries);
103 // Read the nameGroups and turn them from ASCII bytes into a Java String.
109 sb.append((char)bytes.get());
115 ByteBuffer bytes = ICUBinary.getRequiredData("pnames.icu") local
    [all...]
UResource.java 28 // Stores a reference to the resource bundle key string bytes array,
33 private byte[] bytes; field in class:UResource.Key
44 bytes = keyBytes;
51 * The corresponding ASCII-character bytes are not copied and
60 bytes = keyBytes;
70 bytes = null;
91 return (char)bytes[offset + i];
103 return new Key(bytes, offset + start, end - start);
119 sb.append((char)bytes[offset + i]);
143 if (bytes[offset + i] != otherBytes[otherOffset + i])
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
CoverageTest.java 66 private void writeFile(String className, byte bytes[])
72 stream.write(bytes);
85 private void add(String className, int classModifiers, byte bytes[])
87 CoverageTarget newTarget = new CoverageTarget(className, classModifiers, bytes);
95 private byte bytes[]; field in class:CoverageTest.CoverageTarget
98 public CoverageTarget(String className, int classModifiers, byte bytes[])
100 super(className, bytes == null? null : new ByteArrayInputStream(bytes));
102 this.bytes = bytes;
    [all...]
  /external/kernel-headers/original/uapi/drm/
omap_drm.h 52 uint32_t bytes; /* (for non-tiled formats) */ member in union:omap_gem_size
  /external/kernel-headers/original/uapi/mtd/
ubi-user.h 76 * this number of bytes to the volume character device. The update is finished
77 * when the claimed number of bytes is passed. So, the volume update sequence
99 * user is expected to write the requested amount of bytes (similarly to what
254 * 512 in case of a 512 bytes page NAND flash with no sub-page support. Or
263 * be 2KiB-64 bytes = 1984. Note, that this position is not even 512-bytes
292 * @bytes: volume size in bytes
321 __s64 bytes; member in struct:ubi_mkvol_req
332 * @bytes: new size of the volume in byte
341 __s64 bytes; member in struct:ubi_rsvol_req
406 __s32 bytes; member in struct:ubi_leb_change_req
    [all...]
  /external/libbrillo/brillo/dbus/
data_serialization_unittest.cc 394 std::vector<uint8_t> bytes{1, 2, 3};
395 AppendValueToWriter(&writer, bytes);
403 EXPECT_EQ(bytes, bytes_out);
409 std::vector<uint8_t> bytes; local
410 AppendValueToWriter(&writer, bytes);
418 EXPECT_EQ(bytes, bytes_out);

Completed in 702 milliseconds

<<21222324252627282930>>