Searched refs:chunk (Results 1 - 25 of 322) sorted by relevance

1234567891011>>

/external/curl/docs/examples/
H A Dhttpcustomheader.c32 struct curl_slist *chunk = NULL; local
35 chunk = curl_slist_append(chunk, "Accept:");
38 chunk = curl_slist_append(chunk, "Another: yes");
41 chunk = curl_slist_append(chunk, "Host: example.com");
45 chunk = curl_slist_append(chunk, "X-silly-header;");
48 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
[all...]
H A Dpost-callback.c99 struct curl_slist *chunk = NULL; local
101 chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked");
102 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
122 struct curl_slist *chunk = NULL; local
124 chunk = curl_slist_append(chunk, "Expect:");
125 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
H A Dgetinmemory.c23 * download data into a 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 Dpostinmemory.c56 struct MemoryStruct chunk; local
59 chunk.memory = malloc(1); /* will be grown as needed by realloc above */
60 chunk.size = 0; /* no data at this point */
71 /* we pass our 'chunk' struct to the callback function */
72 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
93 * Now, our chunk.memory points to a memory block that is chunk.size
98 printf("%s\n",chunk.memory);
104 free(chunk.memory);
/external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xshader/src/
H A Ddxbc_dump.cpp36 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 Dsync.py46 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 Dindexes.py63 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 DpushSAX.py46 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 DpushSAXhtml.py46 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 Dhost_misc.c102 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/jemalloc/include/jemalloc/internal/
H A Dchunk_mmap.h14 bool chunk_dalloc_mmap(void *chunk, size_t size);
H A Darena.h69 /* Each element of the chunk map corresponds to one page within the chunk. */
155 * Each arena_chunk_map_misc_t corresponds to one page within the chunk, just
157 * chunk header in order to improve cache locality.
187 /* Arena chunk header. */
190 * A pointer to the arena that owns the chunk is stored within the node.
197 * Map of pages within chunk that keeps track of free/large/small. The
198 * first map_bias entries are omitted, since the chunk header does not
200 * for common chunk sizes (e.g. 4 MiB).
330 * In order to avoid rapid chunk allocatio
664 arena_bitselm_get(arena_chunk_t *chunk, size_t pageind) argument
674 arena_miscelm_get(arena_chunk_t *chunk, size_t pageind) argument
[all...]
/external/autotest/client/tests/bonnie/
H A Dbonnie.py9 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 DChunkedIntArray.java94 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 DLineBufferTest.java73 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 Dhog.c33 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/webpagereplay/
H A Dhttpzlib.py37 (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 Dfakepng.c23 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 DHttpChunkedResponseTest.java46 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 Dcompression.py74 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 Dobstack.c133 /* 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 Delf_getdata_rawchunk.c1 /* 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 Dt1Lib.py169 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...]
/external/fonttools/Tools/fontTools/
H A Dt1Lib.py169 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...]
/external/jemalloc/src/
H A Dandroid_je_iterate.c20 static void je_iterate_chunk(arena_chunk_t *chunk,
27 * chunk size, and base+size will be rounded up to the chunk size. If no memory
59 arena_chunk_t *chunk = (arena_chunk_t *)ptr; local
62 if (&chunk->node != node) {
63 /* Empty retained chunk */
67 je_iterate_chunk(chunk, callback, arg);
83 /* Iterate over a valid jemalloc chunk, calling callback for each large
85 static void je_iterate_chunk(arena_chunk_t *chunk, argument
95 mapbits = arena_mapbits_get(chunk, pagein
[all...]

Completed in 3301 milliseconds

1234567891011>>