/external/curl/docs/examples/ |
H A D | httpcustomheader.c | 36 struct curl_slist *chunk = NULL; local 39 chunk = curl_slist_append(chunk, "Accept:"); 42 chunk = curl_slist_append(chunk, "Another: yes"); 45 chunk = curl_slist_append(chunk, "Host: example.com"); 49 chunk = curl_slist_append(chunk, "X-silly-header;"); 52 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); [all...] |
H A D | post-callback.c | 101 struct curl_slist *chunk = NULL; local 103 chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked"); 104 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); 124 struct curl_slist *chunk = NULL; local 126 chunk = curl_slist_append(chunk, "Expect:"); 127 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
H A D | getinmemory.c | 24 * chunk of memory instead of storing it in a file. 64 struct MemoryStruct chunk; local 66 chunk.memory = malloc(1); /* will be grown as needed by the realloc above */ 67 chunk.size = 0; /* no data at this point */ 80 /* we pass our 'chunk' struct to the callback function */ 81 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); 97 * Now, our chunk.memory points to a memory block that is chunk.size 103 printf("%lu bytes retrieved\n", (long)chunk.size); 109 free(chunk [all...] |
H A D | postinmemory.c | 60 struct MemoryStruct chunk; local 63 chunk.memory = malloc(1); /* will be grown as needed by realloc above */ 64 chunk.size = 0; /* no data at this point */ 75 /* we pass our 'chunk' struct to the callback function */ 76 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk); 97 * Now, our chunk.memory points to a memory block that is chunk.size 102 printf("%s\n",chunk.memory); 108 free(chunk.memory);
|
/external/libxml2/python/tests/ |
H A D | sync.py | 46 chunk="""<foo><bar2/>""" 48 ctxt.parseChunk(chunk, len(chunk), 0) 58 chunk="""<foo><bar2></bar2>""" 60 ctxt.parseChunk(chunk, len(chunk), 0) 70 chunk="""<foo><bar2>""" 72 ctxt.parseChunk(chunk, len(chunk), 0) 82 chunk [all...] |
H A D | indexes.py | 63 chunk = """ <bar1>chars1</bar1> 75 ctxt.parseChunk(chunk, len(chunk), 0) 77 chunk = "</foo>" variable 78 ctxt.parseChunk(chunk, len(chunk), 1) 85 chunk="""<?xml version="1.0" encoding="ISO-8859-1"?> 88 ctxt = libxml2.createPushParser(handler, chunk, len(chunk), "test.xml") 89 chunk 103 chunk = "</foo>" variable [all...] |
H A D | pushSAX.py | 46 chunk = " url='tst'>b" 47 ctxt.parseChunk(chunk, len(chunk), 0) 48 chunk = "ar</foo>" variable 49 ctxt.parseChunk(chunk, len(chunk), 1)
|
H A D | pushSAXhtml.py | 46 chunk = " url='tst'>b" 47 ctxt.htmlParseChunk(chunk, len(chunk), 0) 48 chunk = "ar</foo>" variable 49 ctxt.htmlParseChunk(chunk, len(chunk), 1)
|
/external/vboot_reference/host/lib21/ |
H A D | host_misc.c | 102 unsigned int chunk[11]; local 107 chunk+0, 108 chunk+1, 109 chunk+2, 110 chunk+3, 111 chunk+4, 112 chunk+5, 113 chunk+6, 114 chunk+7, 115 chunk [all...] |
/external/v8/src/heap/ |
H A D | remembered-set.h | 24 static void Insert(MemoryChunk* chunk, Address slot_addr) { argument 25 DCHECK(chunk->Contains(slot_addr)); 26 SlotSet* slot_set = GetSlotSet(chunk); 28 slot_set = AllocateSlotSet(chunk); 30 uintptr_t offset = slot_addr - chunk->address(); 36 static bool Contains(MemoryChunk* chunk, Address slot_addr) { argument 37 DCHECK(chunk->Contains(slot_addr)); 38 SlotSet* slot_set = GetSlotSet(chunk); 42 uintptr_t offset = slot_addr - chunk->address(); 50 static void Remove(MemoryChunk* chunk, Addres argument 61 RemoveRange(MemoryChunk* chunk, Address start, Address end, SlotSet::EmptyBucketMode mode) argument 113 MemoryChunk* chunk; local 127 Iterate(MemoryChunk* chunk, Callback callback) argument 193 IterateTyped(MemoryChunk* chunk, Callback callback) argument 207 MemoryChunk* chunk; local 221 GetSlotSet(MemoryChunk* chunk) argument 229 GetTypedSlotSet(MemoryChunk* chunk) argument 237 ReleaseTypedSlotSet(MemoryChunk* chunk) argument 243 AllocateSlotSet(MemoryChunk* chunk) argument 253 AllocateTypedSlotSet(MemoryChunk* chunk) argument [all...] |
/external/autotest/server/site_tests/enterprise_CFM_HuddlyUpdater/ |
H A D | parse_unittest.py | 30 chunk = fhandle.read() 32 got = parse.parse_fw_vers(chunk)
|
/external/jemalloc/include/jemalloc/internal/ |
H A D | chunk_mmap.h | 14 bool chunk_dalloc_mmap(void *chunk, size_t size);
|
H A D | arena.h | 75 /* Each element of the chunk map corresponds to one page within the chunk. */ 161 * Each arena_chunk_map_misc_t corresponds to one page within the chunk, just 163 * chunk header in order to improve cache locality. 193 /* Arena chunk header. */ 196 * A pointer to the arena that owns the chunk is stored within the node. 211 * Map of pages within chunk that keeps track of free/large/small. The 212 * first map_bias entries are omitted, since the chunk header does not 214 * for common chunk sizes (e.g. 4 MiB). 401 * In order to avoid rapid chunk allocatio 712 arena_bitselm_get_mutable(arena_chunk_t *chunk, size_t pageind) argument 722 arena_bitselm_get_const(const arena_chunk_t *chunk, size_t pageind) argument 729 arena_miscelm_get_mutable(arena_chunk_t *chunk, size_t pageind) argument [all...] |
/external/v8/src/libplatform/tracing/ |
H A D | trace-buffer.cc | 25 auto& chunk = chunks_[chunk_index_]; local 26 if (chunk) { 27 chunk->Reset(current_chunk_seq_++); 29 chunk.reset(new TraceBufferChunk(current_chunk_seq_++)); 32 auto& chunk = chunks_[chunk_index_]; local 34 TraceObject* trace_object = chunk->AddTraceEvent(&event_index); 35 *handle = MakeHandle(chunk_index_, chunk->seq(), event_index); 45 auto& chunk = chunks_[chunk_index]; 46 if (!chunk || chunk [all...] |
/external/brotli/java/org/brotli/dec/ |
H A D | Dictionary.java | 50 for (String chunk : chunks) { 51 sum += chunk.length(); 57 for (String chunk : chunks) { 58 for (int j = 0; j < chunk.length(); ++j) { 59 DATA[sum++] = (byte) chunk.charAt(j);
|
/external/autotest/client/tests/bonnie/ |
H A D | bonnie.py | 9 chunk = values[1] 11 chunk = 0 18 if chunk: 19 if chunk.endswith('K') or chunk.endswith('k'): 20 chunk = int(chunk[:-1]) * 2**10 22 chunk = int(chunk) 23 return [size, chunk] [all...] |
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
H A D | ChunkedIntArray.java | 94 int[] chunk = chunks.elementAt(chunkpos); 95 chunk[slotpos] = w0; 96 chunk[slotpos+1] = w1; 97 chunk[slotpos+2] = w2; 98 chunk[slotpos+3] = w3; 126 int[] chunk = chunks.elementAt(chunkpos); 127 return chunk[slotpos + offset]; 148 int[] chunk = chunks.elementAt(chunkpos); 153 ancestor = chunk[slotpos + 1]; 175 CIA; when only a single characters() chunk ha [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | LineBufferTest.java | 73 for (int chunk : CHUNK_SIZES) { 74 chunk = Math.max(1, Math.min(chunk, input.length())); 75 assertEquals(expectProcess, bufferHelper(input, chunk)); 76 assertEquals(expectRead, readUsingJava(input, chunk)); 77 assertEquals(expectRead, readUsingReader(input, chunk, true)); 78 assertEquals(expectRead, readUsingReader(input, chunk, false)); 82 private static List<String> bufferHelper(String input, int chunk) argument 93 int len = Math.min(chars.length, off + chunk) - off; 101 private static List<String> readUsingJava(String input, int chunk) argument 113 readUsingReader(String input, int chunk, boolean asReader) argument 128 getChunkedReadable(String input, int chunk) argument 138 getChunkedReader(String input, final int chunk) argument [all...] |
/external/autotest/client/site_tests/platform_CompressedSwap/src/ |
H A D | hog.c | 33 int chunk; local 66 for (chunk = 0; chunk < megabytes; chunk++) { 71 printf("hog: out of memory at chunk %d\n", chunk); 79 chunks[chunk] = p; 82 printf("hog: idling\n", chunk);
|
/external/syslinux/com32/elflink/ldlinux/ |
H A D | loadhigh.c | 66 uint32_t chunk; local 74 chunk = bytes; 78 chunk = min(chunk, MAX_CHUNK); 81 if (chunk > (((char *)limit - buf) & ~sector_mask)) 82 chunk = ((char *)limit - buf) & ~sector_mask; 84 sectors = (chunk + sector_mask) >> SECTOR_SHIFT(fs); 87 if (bytes_read > chunk) 88 bytes_read = chunk;
|
/external/libpng/contrib/libtests/ |
H A D | fakepng.c | 23 put_chunk(const unsigned char *chunk, uInt length) argument 29 fwrite(chunk, length, 1, stdout); 32 put_uLong(crc32(crc, chunk, length));
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
H A D | HttpChunkedResponseTest.java | 46 int chunk = 0; field in class:HttpChunkedResponseTest.ChunkedInputStream 57 for (int i = 0; i < this.chunks[this.chunk].length(); ++i) { 58 buffer[i] = (byte) this.chunks[this.chunk].charAt(i); 60 return this.chunks[this.chunk++].length();
|
/external/v8/tools/testrunner/server/ |
H A D | compression.py | 74 chunk = self.sock.recv(8192) 77 if not chunk: return None 78 self._AppendData(chunk) 83 chunk = self.sock.recv(8192) 86 if not chunk: return None 87 self._AppendData(chunk) 104 chunk = self.data.read(length) 111 return chunk
|
/external/bison/lib/ |
H A D | obstack.c | 133 /* Initialize an obstack H for use. Specify chunk size SIZE (0 means default). 147 register struct _obstack_chunk *chunk; /* points to new chunk */ 174 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); 175 if (!chunk) 177 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, 179 h->chunk_limit = chunk->limit 180 = (char *) chunk 146 register struct _obstack_chunk *chunk; /* points to new chunk */ local 193 register struct _obstack_chunk *chunk; /* points to new chunk */ local [all...] |
/external/syslinux/com32/libupload/ |
H A D | upload_srec.c | 50 size_t len, chunk, offset, hdrlen; local 66 chunk = min(len, (size_t)32); 68 write_srecord(chunk, 4, offset, '3', buf); 69 buf += chunk; 70 len -= chunk; 71 offset += chunk;
|