/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 | 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 | 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 | 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";
|
H A D | dxbc_parse.cpp | 44 dxbc_chunk_header* chunk = (dxbc_chunk_header*)((char*)data + offset); local 45 unsigned fourcc = bswap_le32(chunk->fourcc); 47 container->chunks.push_back(chunk); 62 dxbc_chunk_header* chunk = (dxbc_chunk_header*)((char*)data + offset); local 63 if(bswap_le32(chunk->fourcc) == fourcc) 64 return 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/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/freetype/src/cff/ |
H A D | cf2arrst.h | 58 size_t chunk; /* allocation increment in items */ member in struct:CF2_ArrStackRec_
|
/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/jemalloc/src/ |
H A D | chunk_mmap.c | 71 chunk_dalloc_mmap(void *chunk, size_t size) argument 75 pages_unmap(chunk, size);
|
/external/libxml2/python/tests/ |
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/mockito/src/main/java/org/mockito/internal/invocation/ |
H A D | InvocationMarker.java | 28 public static void markVerifiedInOrder(List<Invocation> chunk, MatchableInvocation wanted, InOrderContext context) { argument 29 markVerified(chunk, wanted); 31 for (Invocation i : chunk) {
|
/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/pdfium/third_party/freetype/src/cff/ |
H A D | cf2arrst.h | 58 size_t chunk; /* allocation increment in items */ member in struct:CF2_ArrStackRec_
|
/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/curl/lib/ |
H A D | http_chunks.c | 43 * <HEX SIZE>[ chunk extension ] CRLF 55 Chunked-Body = *chunk 56 last-chunk 60 chunk = chunk-size [ chunk-extension ] CRLF 61 chunk-data CRLF 62 chunk-size = 1*HEX 63 last-chunk = 1*("0") [ chunk 88 struct Curl_chunker *chunk = &conn->chunk; local [all...] |
/external/skia/src/utils/ |
H A D | SkBitSet.h | 30 uint32_t* chunk = this->internalGet(index); local 31 SkASSERT(chunk); 32 *chunk |= mask; 44 const uint32_t* chunk = this->internalGet(index); local 46 return chunk && SkToBool(*chunk & mask);
|
/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;
|
/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/autotest/client/tests/linus_stress/ |
H A D | linus_stress.c | 99 int chunk = chunkorder[i]; local 100 printf("Writing chunk %d/%d (%d%%) \r", i, NRCHUNKS, 100*i/NRCHUNKS); 101 fillmem(mapping + chunk * CHUNKSIZE, chunk); 110 int chunk = i; local 111 printf("Checking chunk %d/%d (%d%%) \r", i, NRCHUNKS, 100*i/NRCHUNKS); 112 checkmem(mapping + chunk * CHUNKSIZE, chunk);
|
/external/boringssl/src/crypto/asn1/ |
H A D | a_d2i_fp.c | 235 size_t chunk = want > chunk_max ? chunk_max : want; local 237 if (!BUF_MEM_grow_clean(b, len + chunk)) { 241 want -= chunk; 242 while (chunk > 0) { 243 i = BIO_read(in, &(b->data[len]), chunk); 253 chunk -= i;
|
/external/compiler-rt/lib/asan/ |
H A D | asan_debugging.cc | 51 AsanChunkView chunk = FindHeapChunkByAddress(addr); local 57 if (!chunk.IsValid()) { 62 descr->region_address = chunk.Beg(); 63 descr->region_size = chunk.UsedSize(); 86 AsanChunkView chunk = FindHeapChunkByAddress(addr); local 87 if (!chunk.IsValid()) return 0; 91 if (chunk.AllocTid() == kInvalidTid) return 0; 92 stack = chunk.GetAllocStack(); 93 if (thread_id) *thread_id = chunk.AllocTid(); 95 if (chunk [all...] |