| /external/bison/lib/ |
| bitsetv.c | 33 size_t bytes; local 37 /* Determine number of bytes for each set. */ 38 bytes = bitset_bytes (type, n_bits); 41 if (BITSET_SIZE_MAX / (sizeof (bitset) + bytes) <= n_vecs) 45 vector_bytes = (n_vecs + 1) * sizeof (bitset) + bytes - 1; 46 vector_bytes -= vector_bytes % bytes; 47 bsetv = xcalloc (1, vector_bytes + bytes * n_vecs); 51 bsetv[i] = (bitset) (void *) ((char *) bsetv + vector_bytes + i * bytes);
|
| mbswidth.c | 153 size_t bytes; local 156 bytes = mbrtowc (&wc, p, plimit - p, &mbstate); 158 if (bytes == (size_t) -1) 171 if (bytes == (size_t) -2) 184 if (bytes == 0) 186 bytes = 1; 199 p += bytes;
|
| /external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
| DEREnumerated.java | 11 byte[] bytes; field in class:DEREnumerated 57 bytes = BigInteger.valueOf(value).toByteArray(); 63 bytes = value.toByteArray(); 67 byte[] bytes) 69 this.bytes = bytes; 74 return new BigInteger(bytes); 81 out.writeEncoded(ENUMERATED, bytes); 94 return Arrays.areEqual(this.bytes, other.bytes); [all...] |
| /external/chromium/net/base/ |
| ip_endpoint.cc | 89 const char* bytes = reinterpret_cast<const char*>(&addr->sin_addr); local 90 address_.assign(&bytes[0], &bytes[kIPv4AddressSize]); 97 const char* bytes = reinterpret_cast<const char*>(&addr->sin6_addr); local 98 address_.assign(&bytes[0], &bytes[kIPv6AddressSize]);
|
| /external/dhcpcd/ |
| signals.c | 70 ssize_t bytes; local 73 bytes = read(signal_pipe[0], buf, sizeof(buf)); 74 if (bytes >= 0 && (size_t)bytes >= sizeof(sig))
|
| /external/mesa3d/src/glsl/glcpp/ |
| glcpp.c | 52 ssize_t bytes; local 63 bytes = read (fd, text + total_read, CHUNK); 64 if (bytes < 0) { 71 if (bytes == 0) { 75 total_read += bytes;
|
| /external/openssl/crypto/rand/ |
| rand.h | 84 int (*bytes)(unsigned char *buf, int num); member in struct:rand_meth_st 110 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); 112 int RAND_egd_bytes(const char *path,int bytes);
|
| /external/openssl/include/openssl/ |
| rand.h | 84 int (*bytes)(unsigned char *buf, int num); member in struct:rand_meth_st 110 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); 112 int RAND_egd_bytes(const char *path,int bytes);
|
| /external/qemu/distrib/sdl-1.2.12/src/video/maccommon/ |
| SDL_macmouse.c | 56 int row, bytes; local 72 bytes = (w+7)/8; 75 SDL_memcpy(&cursor->curs.data[row], data, bytes); 76 data += bytes; 79 SDL_memcpy(&cursor->curs.mask[row], mask, bytes); 80 mask += bytes;
|
| /external/strace/ |
| sock.c | 94 unsigned char *bytes; local 189 bytes = (unsigned char *) &ifr.ifr_hwaddr.sa_data; 191 bytes[0], bytes[1], bytes[2], 192 bytes[3], bytes[4], bytes[5]);
|
| /external/webkit/Source/WebCore/platform/text/ |
| TextCodecUTF16.cpp | 69 String TextCodecUTF16::decode(const char* bytes, size_t length, bool, bool, bool&) 76 const unsigned char* p = reinterpret_cast<const unsigned char*>(bytes); 124 // character buffer, each character is two bytes, and we know 130 char* bytes; local 131 CString string = CString::newUninitialized(length * 2, bytes); 138 bytes[i * 2] = c; 139 bytes[i * 2 + 1] = c >> 8; 144 bytes[i * 2] = c >> 8; 145 bytes[i * 2 + 1] = c;
|
| /external/webkit/Source/WebKit2/Shared/win/ |
| PlatformCertificateInfo.cpp | 135 Vector<uint8_t> bytes; local 136 if (!decoder->decodeBytes(bytes)) { 141 PCCERT_CONTEXT certificateContext = ::CertCreateCertificateContext(PKCS_7_ASN_ENCODING | X509_ASN_ENCODING, bytes.data(), bytes.size());
|
| /frameworks/base/core/java/com/android/internal/http/multipart/ |
| ByteArrayPartSource.java | 50 private byte[] bytes; field in class:ByteArrayPartSource 55 * @param fileName the name of the file these bytes represent 56 * @param bytes the content of this part 58 public ByteArrayPartSource(String fileName, byte[] bytes) { 61 this.bytes = bytes; 69 return bytes.length; 83 return new ByteArrayInputStream(bytes);
|
| /frameworks/base/drm/common/ |
| ReadWriteUtils.cpp | 46 char* bytes = new char[length]; local 47 if (length == read(fd, (void*) bytes, length)) { 48 string.append(bytes, length); 50 delete bytes;
|
| /frameworks/base/voip/jni/rtp/ |
| GsmCodec.cpp | 62 unsigned char *bytes = (unsigned char *)payload; local 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) { 68 bytes += 33;
|
| /libcore/luni/src/main/java/java/lang/ |
| UnsafeByteSequence.java | 32 private byte[] bytes; field in class:UnsafeByteSequence 36 this.bytes = new byte[initialCapacity]; 52 if (count + length >= bytes.length) { 54 System.arraycopy(bytes, 0, newBytes, 0, count); 55 bytes = newBytes; 57 System.arraycopy(buffer, offset, bytes, count, length); 62 if (count == bytes.length) { 64 System.arraycopy(bytes, 0, newBytes, 0, count); 65 bytes = newBytes; 67 bytes[count++] = (byte) b [all...] |
| /libcore/luni/src/main/java/libcore/icu/ |
| CollationKeyICU.java | 22 private final byte[] bytes; field in class:CollationKeyICU 29 CollationKeyICU(String source, byte[] bytes) { 31 this.bytes = bytes; 35 // Get the bytes from the other collation key. 38 rhsBytes = ((CollationKeyICU) other).bytes; 43 if (bytes == null || bytes.length == 0) { 54 int count = Math.min(bytes.length, rhsBytes.length); 56 int s = bytes[i] & 0xff [all...] |
| /libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
| BitString.java | 38 public final byte[] bytes; field in class:BitString 44 * @param bytes array of bytes that represents bit string, 49 public BitString(byte[] bytes, int unusedBits) { 55 if (bytes.length == 0 && unusedBits != 0) { 59 this.bytes = bytes; 69 bytes = new byte[size]; 78 return (bytes[index] & SET_MASK[offset]) != 0; 85 bytes[index] |= SET_MASK[offset] [all...] |
| /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
| ByteArray.java | 25 private final byte[] bytes; field in class:ByteArray 28 ByteArray(byte[] bytes) { 29 this.bytes = bytes; 30 this.hashCode = Arrays.hashCode(bytes); 42 return Arrays.equals(bytes, lhs.bytes);
|
| /system/media/mca/filterfw/jni/ |
| jni_vertex_frame.cpp | 76 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 77 if (bytes) { 78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 80 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
| /libcore/luni/src/main/java/libcore/io/ |
| Streams.java | 57 * Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available. 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 65 * EOFException if insufficient bytes are available. 105 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 109 bytes.write(buffer, 0, count); 111 return bytes.toByteArray(); 139 * {@code byteCount} bytes have been read. 175 * Copies all of the bytes from {@code in} to {@code out}. Neither stream is closed. 176 * Returns the total number of bytes transferred [all...] |
| /libcore/luni/src/test/java/libcore/java/io/ |
| DataOutputStreamTest.java | 26 private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:DataOutputStreamTest 27 private DataOutputStream os = new DataOutputStream(bytes); 32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); 42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); 48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); 55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); 61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); 66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); 71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); 76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())) [all...] |
| /bionic/libc/netbsd/isc/ |
| ev_streams.c | 43 static void consume(evStream *str, size_t bytes); 227 consume(evStream *str, size_t bytes) { 228 while (bytes > 0U) { 229 if (bytes < (size_t)str->iovCur->iov_len) { 230 str->iovCur->iov_len -= bytes; 232 ((u_char *)str->iovCur->iov_base + bytes); 233 str->ioDone += bytes; 234 bytes = 0; 236 bytes -= str->iovCur->iov_len; 262 /* Dribble out some bytes on the stream. (Called by evDispatch().) * 266 int bytes; local 289 int bytes; local [all...] |
| /bootable/recovery/applypatch/ |
| main.c | 38 size_t bytes = strtol(argv[2], &endptr, 10); local 39 if (bytes == 0 && endptr == argv[2]) { 43 return CacheSizeCheck(bytes); 169 " or %s -s <bytes>\n"
|
| /development/tools/emulator/opengl/host/tools/emugen/ |
| VarType.h | 23 VarConverter(size_t bytes) : m_bytes(bytes) {} 24 size_t bytes() const { return m_bytes; } function in class:VarConverter 67 size_t bytes() const { return m_converter->bytes(); } function in class:VarType
|