/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/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xshader/src/ |
H A D | dxbc_dump.cpp | 36 struct dxbc_chunk_header* chunk = container.chunks[i]; local 38 memcpy(fourcc_str, &chunk->fourcc, 4); 40 out << "# DXBC chunk " << std::setw(2) << i << ": " << fourcc_str << " offset " << ((char*)chunk - (char*)container.data) << " size " << bswap_le32(chunk->size) << "\n";
|
/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 | 65 heap, [callback](MemoryChunk* chunk) { Iterate(chunk, callback); }); 69 // The callback should take (MemoryChunk* chunk) and return void. 73 MemoryChunk* chunk; local 74 while ((chunk = it.next()) != nullptr) { 75 SlotSet* slots = GetSlotSet(chunk); 76 TypedSlotSet* typed_slots = GetTypedSlotSet(chunk); 78 callback(chunk); 83 // Iterates and filters the remembered set in the given memory chunk with 87 static void Iterate(MemoryChunk* chunk, Callbac argument 147 IterateTyped(MemoryChunk* chunk, Callback callback) argument 161 MemoryChunk* chunk; local 177 GetSlotSet(MemoryChunk* chunk) argument 185 GetTypedSlotSet(MemoryChunk* chunk) argument 193 ReleaseSlotSet(MemoryChunk* chunk) argument 201 ReleaseTypedSlotSet(MemoryChunk* chunk) argument 209 AllocateSlotSet(MemoryChunk* chunk) argument 219 AllocateTypedSlotSet(MemoryChunk* chunk) argument [all...] |
H A D | remembered-set.cc | 19 for (MemoryChunk* chunk : *heap->old_space()) { 20 SlotSet* slots = GetSlotSet(chunk); 22 slots->Iterate([heap, chunk](Address addr) { 24 return IsValidSlot(heap, chunk, slot) ? KEEP_SLOT : REMOVE_SLOT; 37 MemoryChunk* chunk = MemoryChunk::FromAnyPointerAddress(heap, addr); 38 AllocationSpace owner = chunk->owner()->identity(); 54 bool RememberedSet<direction>::IsValidSlot(Heap* heap, MemoryChunk* chunk, argument 66 chunk, reinterpret_cast<Address>(slot));
|
/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 | 70 /* Each element of the chunk map corresponds to one page within the chunk. */ 156 * Each arena_chunk_map_misc_t corresponds to one page within the chunk, just 158 * chunk header in order to improve cache locality. 188 /* Arena chunk header. */ 191 * A pointer to the arena that owns the chunk is stored within the node. 198 * Map of pages within chunk that keeps track of free/large/small. The 199 * first map_bias entries are omitted, since the chunk header does not 201 * for common chunk sizes (e.g. 4 MiB). 331 * In order to avoid rapid chunk allocatio 665 arena_bitselm_get(arena_chunk_t *chunk, size_t pageind) argument 675 arena_miscelm_get(arena_chunk_t *chunk, size_t pageind) argument [all...] |
/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/chromium-trace/catapult/telemetry/third_party/web-page-replay/ |
H A D | httpzlib.py | 37 (e.g. ["this is the first chunk", "and the second"]) 53 chunk = '' 58 chunk += GZIP_HEADER 59 chunk += compressor.compress(data) 61 chunk += compressor.flush(zlib.Z_SYNC_FLUSH) 63 chunk += (compressor.flush(zlib.Z_FULL_FLUSH) + 66 chunk += (struct.pack("<L", long(crc)) + 68 compressed_chunks.append(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/elfutils/libelf/ |
H A D | elf_getdata_rawchunk.c | 1 /* Return converted data from raw chunk of ELF file. 160 Elf_Data_Chunk *chunk = calloc (1, sizeof *chunk); local 161 if (chunk == NULL) 168 chunk->dummy_scn.elf = elf; 169 chunk->dummy_scn.flags = flags; 170 chunk->data.s = &chunk->dummy_scn; 171 chunk->data.d.d_buf = buffer; 172 chunk [all...] |
/external/fonttools/Lib/fontTools/ |
H A D | t1Lib.py | 169 raise T1Error('bad chunk code: ' + repr(code)) 186 chunk = f.read(chunklen) 187 assert len(chunk) == chunklen 188 data.append(chunk) 192 raise T1Error('bad chunk code: ' + repr(code)) 209 for isEncrypted, chunk in chunks: 210 if isEncrypted and isHex(chunk[:4]): 211 data.append(deHexString(chunk)) 213 data.append(chunk) 225 for isEncrypted, chunk i [all...] |