/external/webkit/WebKitTools/pywebsocket/mod_pywebsocket/ |
msgutil.py | 36 not suitable because they don't allow direct raw bytes writing/reading. 50 bytes = request.connection.read(length) 51 if not bytes: 55 return bytes 58 def _write(request, bytes): 60 request.connection.write(bytes) 89 # mp_conn.read will block if no bytes are available. 100 bytes = _read_until(request, '\xff') 103 message = bytes.decode('utf-8', 'replace') 121 bytes = [ [all...] |
/external/libffi/src/ |
prep_cif.c | 91 unsigned bytes = 0; local 123 bytes = STACK_ARG_SIZE(sizeof(void*)); 143 bytes += sizeof(void*); 148 if (((*ptr)->alignment - 1) & bytes) 149 bytes = ALIGN(bytes, (*ptr)->alignment); 151 bytes += STACK_ARG_SIZE((*ptr)->size); 156 cif->bytes = bytes;
|
/external/openssl/crypto/bn/ |
bn_rand.c | 121 int ret=0,bit,bytes,mask; local 130 bytes=(bits+7)/8; 134 buf=(unsigned char *)OPENSSL_malloc(bytes); 147 if (RAND_pseudo_bytes(buf, bytes) == -1) 152 if (RAND_bytes(buf, bytes) <= 0) 164 for (i = 0; i < bytes; i++) 198 buf[bytes-1]|=1; 199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 204 OPENSSL_cleanse(buf,bytes);
|
/external/openssl/crypto/rand/ |
rand_egd.c | 66 * RAND_query_egd_bytes(path, buf, bytes) 67 * will actually query "bytes" bytes of entropy form the egd-socket located 70 * The number of bytes is not limited by the maximum chunk size of EGD, 71 * which is 255 bytes. If more than 255 bytes are wanted, several chunks 72 * of entropy bytes are requested. The connection is left open until the 76 * num the number of bytes read from the EGD socket. This number is either 77 * the number of bytes requested or smaller, if the EGD pool is 82 * RAND_egd_bytes(path, bytes) will query "bytes" bytes and have the [all...] |
/external/bouncycastle/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;
|
/external/emma/core/java12/com/vladium/jcd/cls/attribute/ |
Exception_info.java | 114 Exception_info (final UDataInputStream bytes) throws IOException 116 m_start_pc = bytes.readU2 (); 117 m_end_pc = bytes.readU2 (); 118 m_handler_pc = bytes.readU2 (); 119 m_catch_type = bytes.readU2 ();
|
InnerClass_info.java | 79 InnerClass_info (final UDataInputStream bytes) throws IOException 81 m_inner_class_index = bytes.readU2 (); 82 m_outer_class_index = bytes.readU2 (); 83 m_inner_name_index = bytes.readU2 (); 84 m_inner_access_flags = bytes.readU2 ();
|
LineNumber_info.java | 87 LineNumber_info (final UDataInputStream bytes) throws IOException 89 m_start_pc = bytes.readU2 (); 90 m_line_number = bytes.readU2 ();
|
/external/tremolo/Tremolo/ |
misc.c | 58 long bytes; member in struct:__anon7945 64 static void *_insert(void *ptr,long bytes,char *file,long line){ 68 ((head *)ptr)->bytes=bytes-HEAD_ALIGN; 113 file_bytes[i]+=bytes-HEAD_ALIGN; 122 file_bytes[i]-(bytes-HEAD_ALIGN)); 132 global_bytes+(bytes-HEAD_ALIGN)); 137 global_bytes+=(bytes-HEAD_ALIGN); 152 long bytes =((head *)ptr)->bytes; local [all...] |
/external/webkit/WebCore/platform/cf/ |
KURLCFNet.cpp | 45 char* bytes = &buffer[5]; local 46 CFURLGetBytes(url, reinterpret_cast<UInt8*>(bytes), bytesLength); 47 bytes[bytesLength] = '\0'; 48 if (bytes[0] != '/') { 49 parse(bytes, 0); 65 // Currently it throws away the high bytes of the characters in the string in that case, 73 // could either be a malformed string or bytes in a different encoding, like Shift-JIS, so we fall back
|
/external/webkit/WebCore/platform/image-decoders/wx/ |
ImageDecoderWx.cpp | 51 const unsigned char* bytes = (const unsigned char*)m_bytes.data(); local 57 p.Red() = bytes[i + 2]; 58 p.Green() = bytes[i + 1]; 59 p.Blue() = bytes[i + 0]; 60 p.Alpha() = bytes[i + 3];
|
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteContentHelper.java | 79 byte[] bytes = cursor.getBlob(0); 80 if (bytes == null) { 83 MemoryFile file = new MemoryFile(null, bytes.length); 84 file.writeBytes(bytes, 0, 0, bytes.length);
|
/frameworks/base/tests/CoreTests/android/core/ |
Sha1Test.java | 56 private static String encodeHex(byte[] bytes) { 57 StringBuffer hex = new StringBuffer(bytes.length * 2); 59 for (int i = 0; i < bytes.length; i++) { 60 if (((int) bytes[i] & 0xff) < 0x10) { 63 hex.append(Integer.toString((int) bytes[i] & 0xff, 16));
|
/external/elfutils/tests/ |
run-show-ciefde.sh | 30 CIE[0]: bytes = 0c 04 04 88 01 00 00 32 FDE[0]: bytes = 18 00 00 00 18 00 00 00 2c 84 04 08 29 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 45 CIE[0]: bytes = 0c 04 04 88 01 50 CIE[1]: bytes = 0c 04 04 88 01 00 00 55 CIE[2]: bytes = 0c 04 04 88 01 00 00 60 CIE[3]: bytes = 0c 04 04 88 01 65 CIE[4]: bytes = 0c 04 04 88 01 00 00 67 FDE[0]: bytes = 2c 00 00 00 1c 00 00 00 fc 93 04 08 9a 00 00 00 41 0e 08 85 02 42 0d 05 53 2e 08 50 2e 10 48 2e 00 58 2e 10 62 2e 00 63 2e 10 45 2e 00 00 00 00 71 FDE[1]: bytes = 18 00 00 00 4c 00 00 00 98 94 04 08 31 00 00 00 41 0e 08 85 02 42 0d 05 4c 2e 10 00 75 FDE[2]: bytes = 18 00 00 00 18 00 00 00 d4 94 04 08 17 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 0 [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
EncoderUtil.java | 336 byte[] bytes = encode(text, charset); 339 encoding = determineEncoding(bytes, usage); 343 return encodeB(prefix, text, usedCharacters, charset, bytes); 346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); 354 * @param bytes 358 public static String encodeB(byte[] bytes) { 362 final int end = bytes.length; 364 int data = (bytes[idx] & 0xff) << 16 | (bytes[idx + 1] & 0xff) << 8 365 | bytes[idx + 2] & 0xff [all...] |
/bionic/libc/bionic/ |
malloc_debug_common.h | 74 void* (*malloc)(size_t bytes); 80 void* (*realloc)(void* oldMem, size_t bytes); 82 void* (*memalign)(size_t alignment, size_t bytes);
|
/external/chromium/base/ |
ref_counted_memory.h | 60 RefCountedBytes* bytes = new RefCountedBytes; local 61 bytes->data.swap(*to_destroy); 62 return bytes;
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1BitString.java | 86 byte[] bytes = new byte[in.length - 1]; 87 System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, 89 return new BitString(bytes, in.buffer[in.contentOffset]); 101 out.length = ((BitString) out.content).bytes.length + 1; 208 byte[] bytes = new byte[index / 8 + 1]; 211 index = bytes.length - 1; 215 bytes[i] = (byte) (bytes[i] | SET_MASK[k]); 223 bytes[index] = (byte) (bytes[index] | SET_MASK[k]) [all...] |
/libcore/luni/src/main/native/ |
java_util_zip_Adler32.cpp | 27 ScopedByteArrayRO bytes(env, byteArray); 28 if (bytes.get() == NULL) { 31 return adler32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
java_util_zip_CRC32.cpp | 27 ScopedByteArrayRO bytes(env, byteArray); 28 if (bytes.get() == NULL) { 31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
/external/apache-http/src/org/apache/commons/codec/net/ |
BCodec.java | 76 protected byte[] doEncoding(byte[] bytes) throws EncoderException { 77 if (bytes == null) { 80 return Base64.encodeBase64(bytes); 83 protected byte[] doDecoding(byte[] bytes) throws DecoderException { 84 if (bytes == null) { 87 return Base64.decodeBase64(bytes);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DEROutputStream.java | 45 byte[] bytes) 49 writeLength(bytes.length); 50 write(bytes); 86 void writeEncoded(int flags, int tagNo, byte[] bytes) 90 writeLength(bytes.length); 91 write(bytes);
|
/external/chromium/net/base/ |
upload_data.h | 31 const std::vector<char>& bytes() const { return bytes_; } function in class:net::UploadData::Element 36 void SetToBytes(const char* bytes, int bytes_len) { 38 bytes_.assign(bytes, bytes + bytes_len); 65 void AppendBytes(const char* bytes, int bytes_len) { 68 elements_.back().SetToBytes(bytes, bytes_len); 83 // Returns the total size in bytes of the data to upload.
|
/external/dbus/dbus/ |
dbus-memory.c | 140 _dbus_verbose ("Will fail mallocs over %ld bytes\n", 336 _dbus_verbose ("Checking %d bytes request from source %s\n", 346 _dbus_warn ("Block of %lu bytes from %s had start guard value 0x%ux at %d expected 0x%x\n", 361 _dbus_warn ("Block of %lu bytes from %s had end guard value 0x%ux at %d expected 0x%x\n", 370 /* set memory to anything but nul bytes */ 428 * Allocates the given number of bytes, as with standard 429 * malloc(). Guaranteed to return #NULL if bytes is zero 436 * @param bytes number of bytes to allocate 440 dbus_malloc (size_t bytes) [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/ |
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);
|