HomeSort by relevance Sort by last modified time
    Searched refs:chunk (Results 1 - 25 of 753) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/curl/docs/examples/
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...]
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);
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.memory)
    [all...]
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);
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
NinePatchChunk.java 25 // NinePatch chunk.
56 NinePatchChunk chunk = new NinePatchChunk();
57 chunk.mDivX = new int[byteBuffer.get()];
58 chunk.mDivY = new int[byteBuffer.get()];
59 chunk.mColor = new int[byteBuffer.get()];
61 checkDivCount(chunk.mDivX.length);
62 checkDivCount(chunk.mDivY.length);
68 chunk.mPaddings.left = byteBuffer.getInt();
69 chunk.mPaddings.right = byteBuffer.getInt();
70 chunk.mPaddings.top = byteBuffer.getInt()
    [all...]
  /external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xshader/src/
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/vboot_reference/host/lib21/
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+8
    [all...]
  /external/libxml2/python/tests/
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 = """ <bar1>chars1</bar1
103 chunk = "<\/foo>" variable
    [all...]
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="""<foo><bar2 a="1" b='2' />""
    [all...]
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)
  /external/v8/src/heap/
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, Callback callback)
161 MemoryChunk* chunk; local
    [all...]
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,
66 chunk, reinterpret_cast<Address>(slot));
  /external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
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/jemalloc/include/jemalloc/internal/
chunk_mmap.h 14 bool chunk_dalloc_mmap(void *chunk, size_t size);
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).
308 * 3) Chunk- and run-related operations are protected by this mutex
    [all...]
  /external/autotest/client/tests/bonnie/
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...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
NinePatch_Delegate.java 59 * in the cache, using a {@link SoftReference} for the chunk. The default Java classes
69 private byte[] chunk; field in class:NinePatch_Delegate
75 * Serializes the given chunk.
77 * @return the serialized data for the chunk.
79 public static byte[] serialize(NinePatchChunk chunk) {
80 // serialize the chunk to get a byte[]
85 oos.writeObject(chunk);
100 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk));
107 * If the chunk is present in the cache then the object from the cache is returned, otherwise
110 * @param array the serialized representation of the chunk
115 NinePatchChunk chunk = chunkRef.get(); local
    [all...]
  /external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
ChunkedIntArray.java 94 int[] chunk = chunks.elementAt(chunkpos); local
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); local
127 return chunk[slotpos + offset];
148 int[] chunk = chunks.elementAt(chunkpos); local
153 ancestor = chunk[slotpos + 1];
175 CIA; when only a single characters() chunk has been recieved, its inde
207 int[] chunk = chunks.elementAt(chunkpos); local
230 int[] chunk = chunks.elementAt(chunkpos); local
263 int[] chunk = chunks.elementAt(chunkpos); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
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)
93 int len = Math.min(chars.length, off + chunk) - off;
101 private static List<String> readUsingJava(String input, int chunk)
    [all...]
  /external/autotest/client/site_tests/platform_CompressedSwap/src/
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);
  /frameworks/base/tools/aapt2/unflatten/
ResChunkPullParser.h 32 * and size. The pull parser will verify that the chunk's size
34 * over each chunk in the given block of data.
37 * pointing to the data portion of a chunk.
46 Chunk,
80 inline static const T* convertTo(const android::ResChunk_header* chunk) {
81 if (util::deviceToHost16(chunk->headerSize) < sizeof(T)) {
84 return reinterpret_cast<const T*>(chunk);
87 inline static const uint8_t* getChunkData(const android::ResChunk_header* chunk) {
88 return reinterpret_cast<const uint8_t*>(chunk) + util::deviceToHost16(chunk->headerSize)
    [all...]
  /external/libpng/contrib/libtests/
fakepng.c 23 put_chunk(const unsigned char *chunk, uInt length)
29 fwrite(chunk, length, 1, stdout);
32 put_uLong(crc32(crc, chunk, length));
  /toolchain/binutils/binutils-2.25/libiberty/
objalloc.c 56 /* This structure appears at the start of each chunk. */
60 /* Next chunk. */
62 /* If this chunk contains large objects, this is the value of
63 current_ptr when this chunk was allocated. If this chunk
74 /* We ask for this much memory each time we create a chunk which is to
89 struct objalloc_chunk *chunk; local
102 chunk = (struct objalloc_chunk *) ret->chunks;
103 chunk->next = NULL;
104 chunk->current_ptr = NULL
141 struct objalloc_chunk *chunk; local
157 struct objalloc_chunk *chunk; local
    [all...]
  /external/nanohttpd/core/src/test/java/fi/iki/elonen/
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/bison/lib/
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 + h->chunk_size
146 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local
193 register struct _obstack_chunk *chunk; \/* points to new chunk *\/ local
    [all...]

Completed in 791 milliseconds

1 2 3 4 5 6 7 8 91011>>