/external/chromium_org/third_party/leveldatabase/src/util/ |
H A D | arena.cc | 24 char* Arena::AllocateFallback(size_t bytes) { argument 25 if (bytes > kBlockSize / 4) { 27 // to avoid wasting too much space in leftover bytes. 28 char* result = AllocateNewBlock(bytes); 37 alloc_ptr_ += bytes; 38 alloc_bytes_remaining_ -= bytes; 42 char* Arena::AllocateAligned(size_t bytes) { argument 47 size_t needed = bytes + slop; 55 result = AllocateFallback(bytes);
|
H A D | 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); 52 inline char* Arena::Allocate(size_t bytes) { argument 56 assert(bytes > 0); 57 if (bytes <= alloc_bytes_remaining_) { 59 alloc_ptr_ += bytes; 60 alloc_bytes_remaining_ -= bytes; [all...] |
H A D | arena_test.cc | 22 size_t bytes = 0; local 47 bytes += s; 49 ASSERT_GE(arena.MemoryUsage(), bytes); 51 ASSERT_LE(arena.MemoryUsage(), bytes * 1.10);
|
/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
H A D | util_unittest.cc | 14 void XmppTestHandler::WriteOutput(const char * bytes, size_t len) { argument 15 output_ << std::string(bytes, len);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
H A D | memory_pool.c | 71 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) argument 73 if (bytes < POOL_LARGE_ALLOC) { 76 if (pool->head + bytes > pool->end) 79 assert(pool->head + bytes <= pool->end); 83 pool->head += bytes; 88 struct memory_block * block = (struct memory_block*)malloc(bytes + sizeof(struct memory_block));
|
/external/chromium_org/third_party/openssl/openssl/crypto/rand/ |
H A D | 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/chromium_org/third_party/openssl/openssl/include/openssl/ |
H A D | 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/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/ |
H A D | 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) { argument 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) { argument [all...] |
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkData.h | 20 * but the actual ptr that is returned (by data() or bytes()) is guaranteed 28 * Returns the number of bytes stored. 43 const uint8_t* bytes() const { function in class:SkData 49 * Returns the actual number of bytes copied, after clamping offset and 51 * only the computed number of bytes is returned. 74 * (a null-terminated array of bytes). The returned SkData will have size()
|
/external/chromium_org/third_party/skia/src/utils/mac/ |
H A D | SkStream_mac.cpp | 20 static size_t get_bytes_proc(void* info, void* buffer, size_t bytes) { argument 22 return ((SkStream*)info)->read(buffer, bytes); 25 static off_t skip_forward_proc(void* info, off_t bytes) { argument 26 return ((SkStream*)info)->skip((size_t) bytes);
|
/external/chromium_org/webkit/common/ |
H A D | resource_request_body.cc | 13 void ResourceRequestBody::AppendBytes(const char* bytes, int bytes_len) { argument 16 elements_.back().SetToBytes(bytes, bytes_len);
|
/external/dhcpcd/ |
H A D | 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/dropbear/ |
H A D | bignum.c | 55 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) { argument 57 if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
|
/external/elfutils/libcpu/ |
H A D | i386_parse.y | 100 struct bitvalue *bytes; 187 static void fillin_arg (struct bitvalue *bytes, struct argname *name, 234 %type <bit> bit byte bytes 282 instr: bytes ':' bitfieldopt kID bitfieldopt optargs 304 newp->bytes = $1; 387 bytes: bytes ',' byte label 769 fillin_arg (struct bitvalue *bytes, struct argname *name, 819 struct bitvalue *b = bytes; 1248 /* First count the number of bytes [all...] |
/external/elfutils/libdw/ |
H A D | libdw_findcu.c | 120 const char *bytes = (dbg->sectiondata[IDX_debug_info]->d_buf + oldoff local 122 uint16_t version = read_2ubyte_unaligned (dbg, bytes);
|
/external/emma/core/java12/com/vladium/emma/rt/ |
H A D | InstrClassLoadHook.java | 54 final byte [] bytes, final int length, 61 $assert.ASSERT (bytes != null, "bytes is null"); 62 $assert.ASSERT (bytes != null, "out is null"); 68 final ClassDef clsDef = ClassDefParser.parseClass (bytes, length); 53 processClassDef(final String className, final byte [] bytes, final int length, ByteArrayOStream out) argument
|
/external/emma/core/java12/com/vladium/jcd/cls/attribute/ |
H A D | LineNumber_info.java | 87 LineNumber_info (final UDataInputStream bytes) throws IOException argument 89 m_start_pc = bytes.readU2 (); 90 m_line_number = bytes.readU2 ();
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
H A D | CONSTANT_Fieldref_info.java | 63 protected CONSTANT_Fieldref_info (final UDataInputStream bytes) throws IOException argument 65 super (bytes);
|
H A D | CONSTANT_InterfaceMethodref_info.java | 62 protected CONSTANT_InterfaceMethodref_info (final UDataInputStream bytes) throws IOException argument 64 super (bytes);
|
H A D | CONSTANT_Methodref_info.java | 63 protected CONSTANT_Methodref_info (final UDataInputStream bytes) throws IOException argument 65 super (bytes);
|
H A D | CONSTANT_ref_info.java | 62 protected CONSTANT_ref_info (final UDataInputStream bytes) argument 65 m_class_index = bytes.readU2 (); 66 m_name_and_type_index = bytes.readU2 ();
|
/external/flac/libFLAC/ |
H A D | memory.c | 40 void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address) argument 48 x = safe_malloc_add_2op_(bytes, /*+*/31); 68 x = safe_malloc_(bytes);
|
/external/icu4c/common/unicode/ |
H A D | bytestriebuilder.h | 57 * The bytes will be copied; the builder does not keep 170 char *bytes; member in class:BytesTrieBuilder
|
/external/libffi/src/ |
H A D | 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/llvm/include/llvm/Support/ |
H A D | StreamableMemoryObject.h | 43 /// getExtent - Returns the size of the region in bytes. (The region is 46 /// May block until all bytes in the stream have been read 52 /// May block until (address - base) bytes have been read 59 /// readBytes - Tries to read a contiguous range of bytes from the 61 /// May block until (address - base + size) bytes have 63 /// not do partial reads - if size bytes cannot be read, 68 /// @param size - The number of bytes to copy. 70 /// and large enough to hold size bytes. 80 /// May block until (address - base + size) bytes have been read 88 /// May block until (address - base) bytes hav 155 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped], local [all...] |