HomeSort by relevance Sort by last modified time
    Searched refs:bytes (Results 26 - 50 of 3338) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 42 * Immutable array of bytes.
48 private final byte[] bytes; field in class:ByteString
50 private ByteString(final byte[] bytes) {
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 into a {@code ByteString}
    [all...]
Internal.java 53 * 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) {
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) {
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/micro/
ByteStringMicro.java 36 * Immutable array of bytes.
42 private final byte[] bytes; field in class:ByteStringMicro
44 private ByteStringMicro(final byte[] bytes) {
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 into a {@code ByteStringMicro}
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
CMSProcessableByteArray.java 19 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);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
X9IntegerConverter.java 26 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/
arena.h 20 // 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);
44 // Bytes of memory in blocks allocated so far
52 inline char* Arena::Allocate(size_t bytes) {
56 assert(bytes > 0);
57 if (bytes <= alloc_bytes_remaining_) {
59 alloc_ptr_ += bytes;
    [all...]
  /external/dhcpcd/compat/
getline.c 44 size_t bytes, newlen; local
54 bytes = 0;
58 if (*buf == NULL || bytes != 0) {
66 p = *buf + bytes;
70 bytes += strlen(p);
71 } while (bytes == 0 || *(*buf + (bytes - 1)) != '\n');
72 if (bytes == 0)
74 return bytes;
  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
UnsafeByteSequence.java 31 private byte[] bytes; field in class:UnsafeByteSequence
35 this.bytes = new byte[initialCapacity];
51 if (count + length >= bytes.length) {
53 System.arraycopy(bytes, 0, newBytes, 0, count);
54 bytes = newBytes;
56 System.arraycopy(buffer, offset, bytes, count, length);
61 if (count == bytes.length) {
63 System.arraycopy(bytes, 0, newBytes, 0, count);
64 bytes = newBytes;
66 bytes[count++] = (byte) b
    [all...]
  /external/javassist/sample/hotswap/
Test.java 10 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);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
BigIntegers.java 23 byte[] bytes = value.toByteArray();
25 if (bytes[0] == 0)
27 byte[] tmp = new byte[bytes.length - 1];
29 System.arraycopy(bytes, 1, tmp, 0, tmp.length);
34 return bytes;
47 byte[] bytes = value.toByteArray();
49 if (bytes[0] == 0)
51 if (bytes.length - 1 > length)
58 System.arraycopy(bytes, 1, tmp, tmp.length - (bytes.length - 1), bytes.length - 1)
    [all...]
  /external/chromium_org/ui/base/text/
bytes_formatting.cc 37 base::string16 FormatBytesInternal(int64 bytes,
42 if (bytes < 0) {
43 NOTREACHED() << "Negative bytes value";
48 double unit_amount = static_cast<double>(bytes);
53 if (bytes != 0 && units != DATA_UNITS_BYTE && unit_amount < 100)
66 DataUnits GetByteDisplayUnits(int64 bytes) {
68 // in unit U when kUnitThresholds[U] <= bytes < kUnitThresholds[U+1].
79 if (bytes < 0) {
80 NOTREACHED() << "Negative bytes value";
86 if (bytes >= kUnitThresholds[unit_index]
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1Enumerated.java 8 ASN1Enumerated(byte[] bytes)
10 super(bytes);
ASN1GeneralizedTime.java 8 ASN1GeneralizedTime(byte[] bytes)
10 super(bytes);
ASN1Integer.java 8 ASN1Integer(byte[] bytes)
10 super(bytes);
ASN1UTCTime.java 8 ASN1UTCTime(byte[] bytes)
10 super(bytes);
  /external/chromium_org/third_party/skia/src/core/
SkDiscardableMemory.h 24 static SkDiscardableMemory* Create(size_t bytes);
32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
  /external/chromium_org/third_party/skia/src/gpu/
GrMemory.cpp 14 void* GrMalloc(size_t bytes) {
15 void* ptr = ::malloc(bytes);
  /external/skia/src/core/
SkDiscardableMemory.h 24 static SkDiscardableMemory* Create(size_t bytes);
32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
  /external/skia/src/gpu/
GrMemory.cpp 14 void* GrMalloc(size_t bytes) {
15 void* ptr = ::malloc(bytes);
  /frameworks/opt/mms/src/java/com/google/android/mms/pdu/
QuotedPrintable.java 26 * Decodes an array quoted-printable characters into an array of original bytes.
35 * @param bytes array of quoted-printable characters
36 * @return array of original bytes,
39 public static final byte[] decodeQuotedPrintable(byte[] bytes) {
40 if (bytes == null) {
44 for (int i = 0; i < bytes.length; i++) {
45 int b = bytes[i];
48 if('\r' == (char)bytes[i + 1] &&
49 '\n' == (char)bytes[i + 2]) {
53 int u = Character.digit((char) bytes[++i], 16)
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/base/
stream_unittest.cc 93 size_t bytes; local
97 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
98 EXPECT_EQ(bytes, kBufSize);
100 EXPECT_TRUE(stream->GetPosition(&bytes));
101 EXPECT_EQ(13U, bytes);
105 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
106 EXPECT_EQ(bytes, kBufSize);
108 EXPECT_TRUE(stream->GetPosition(&bytes));
109 EXPECT_EQ(20U, bytes);
125 size_t bytes; local
183 size_t bytes; local
462 char bytes[100]; local
    [all...]
  /external/chromium_org/cc/resources/
resource.cc 9 size_t Resource::bytes() const { function in class:cc::Resource
  /external/chromium_org/crypto/
random.h 14 // Fills the given buffer with |length| random bytes of cryptographically
17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length);
  /external/protobuf/java/src/main/java/com/google/protobuf/nano/
InternalNano.java 53 * 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 final String stringDefaultValue(String bytes) {
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 final byte[] bytesDefaultValue(String bytes) {
    [all...]
  /external/valgrind/main/none/tests/s390x/
trtt.stdout.exp 1 0 bytes translated
3 0 bytes translated
5 0 bytes translated
7 2 bytes translated
9 5 bytes translated
11 0 bytes translated
13 3 bytes translated
15 9 bytes translated

Completed in 663 milliseconds

12 3 4 5 6 7 8 91011>>