Home
last modified time | relevance | path

Searched refs:buffer (Results 526 - 550 of 6014) sorted by relevance

1...<<21222324252627282930>>...241

/third_party/protobuf/js/binary/
H A Dutils_test.js555 var buffer = new Uint8Array(writer.getResultBuffer());
559 expect(jspb.utils.countVarints(buffer, 0, buffer.length))
577 var buffer = new Uint8Array(writer.getResultBuffer());
578 expect(jspb.utils.countVarintFields(buffer, 0, buffer.length, 1))
590 buffer = new Uint8Array(writer.getResultBuffer());
591 expect(jspb.utils.countVarintFields(buffer, 0, buffer.length, 123456789))
609 var buffer
[all...]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Dutils_test.js485 var buffer = new Uint8Array(writer.getResultBuffer());
490 jspb.utils.countVarints(buffer, 0, buffer.length));
507 var buffer = new Uint8Array(writer.getResultBuffer());
509 jspb.utils.countVarintFields(buffer, 0, buffer.length, 1));
520 buffer = new Uint8Array(writer.getResultBuffer());
522 jspb.utils.countVarintFields(buffer, 0, buffer.length, 123456789));
539 var buffer
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Dutils_test.js485 var buffer = new Uint8Array(writer.getResultBuffer());
490 jspb.utils.countVarints(buffer, 0, buffer.length));
507 var buffer = new Uint8Array(writer.getResultBuffer());
509 jspb.utils.countVarintFields(buffer, 0, buffer.length, 1));
520 buffer = new Uint8Array(writer.getResultBuffer());
522 jspb.utils.countVarintFields(buffer, 0, buffer.length, 123456789));
539 var buffer
[all...]
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DUCAConformanceTest.java148 StringBuilder result = new StringBuilder(), buffer = new StringBuilder(); in parseString()
155 buffer.append(line.charAt(i)); in parseString()
158 if (buffer.length() == 0) { in parseString()
164 value = Integer.parseInt(buffer.toString(), 16); in parseString()
165 buffer.setLength(0); in parseString()
201 String line = null, oldLine = null, buffer = null, oldB = null; in conformanceTest()
211 buffer = parseString(line); in conformanceTest()
213 if (skipLineBecauseOfBug(buffer, skipFlags)) { in conformanceTest()
219 coll.getRawCollationKey(buffer, newSk); in conformanceTest()
224 int cmpres = coll.compare(oldB, buffer); in conformanceTest()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
H A DUCAConformanceTest.java151 StringBuilder result = new StringBuilder(), buffer = new StringBuilder(); in parseString()
158 buffer.append(line.charAt(i)); in parseString()
161 if (buffer.length() == 0) { in parseString()
167 value = Integer.parseInt(buffer.toString(), 16); in parseString()
168 buffer.setLength(0); in parseString()
204 String line = null, oldLine = null, buffer = null, oldB = null; in conformanceTest()
214 buffer = parseString(line); in conformanceTest()
216 if (skipLineBecauseOfBug(buffer, skipFlags)) { in conformanceTest()
222 coll.getRawCollationKey(buffer, newSk); in conformanceTest()
227 int cmpres = coll.compare(oldB, buffer); in conformanceTest()
[all...]
/third_party/mesa3d/src/util/
H A Dvl_vlc.h39 uint64_t buffer; member
84 * switch over to next input buffer
116 vlc->buffer |= (uint64_t)*vlc->data << (24 + vlc->invalid_bits); in vl_vlc_align_data_ptr()
123 * fill the bit buffer, so that at least 32 bits are valid
130 /* as long as the buffer needs to be filled */ in vl_vlc_fillbits()
147 /* enough bytes in buffer, read in a whole dword */ in vl_vlc_fillbits()
154 vlc->buffer |= value << vlc->invalid_bits; in vl_vlc_fillbits()
158 /* buffer is now definitely filled up avoid the loop test */ in vl_vlc_fillbits()
163 /* not enough bytes left in buffer, read single bytes */ in vl_vlc_fillbits()
164 vlc->buffer | in vl_vlc_fillbits()
[all...]
/third_party/ltp/testcases/kernel/syscalls/pkeys/
H A Dpkey01.c14 * 2. pkey_mprotect() apply this pkey to a piece of memory(buffer)
15 * 3. check if access right of the buffer has been changed and take effect
16 * 4. remove the access right(pkey) from this buffer via pkey_mprotect()
17 * 5. check if buffer area can be read or write after removing pkey
131 char *buffer; in pkey_test() local
136 tst_res(TINFO, "Skip test on (%s) buffer", flag_to_str(mpa->flags)); in pkey_test()
143 buffer = SAFE_MMAP(NULL, size, mpa->prot, mpa->flags, fd, 0); in pkey_test()
149 tst_res(TINFO, "Set %s on (%s) buffer", tc->name, flag_to_str(mpa->flags)); in pkey_test()
150 if (ltp_pkey_mprotect(buffer, size, mpa->prot, pkey) == -1) in pkey_test()
160 "Read buffer succes in pkey_test()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/utils/
H A DWGPUHelpers.cpp53 Ref<BufferBase> buffer; in CreateBufferFromData() local
54 DAWN_TRY_ASSIGN(buffer, device->CreateBuffer(&descriptor)); in CreateBufferFromData()
55 memcpy(buffer->GetMappedRange(0, size), data, size); in CreateBufferFromData()
56 buffer->Unmap(); in CreateBufferFromData()
57 return buffer; in CreateBufferFromData()
93 buffer.type = bufferType; in BindingLayoutEntryInitializationHelper()
94 buffer.hasDynamicOffset = bufferHasDynamicOffset; in BindingLayoutEntryInitializationHelper()
95 buffer.minBindingSize = bufferMinBindingSize; in BindingLayoutEntryInitializationHelper()
150 const Ref<BufferBase>& buffer, in BindingInitializationHelper()
153 : binding(binding), buffer(buffe in BindingInitializationHelper()
149 BindingInitializationHelper(uint32_t binding, const Ref<BufferBase>& buffer, uint64_t offset, uint64_t size) BindingInitializationHelper() argument
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_pullup.c259 /* Try first to get the sister buffer for the previous field */ in pullup_get_buffer()
261 && !s->last->buffer->lock[parity]) { in pullup_get_buffer()
262 alloc_buffer(s, s->last->buffer); in pullup_get_buffer()
263 return pullup_lock_buffer(s->last->buffer, parity); in pullup_get_buffer()
266 /* Prefer a buffer with both fields open */ in pullup_get_buffer()
279 /* Search for any half-free buffer */ in pullup_get_buffer()
332 if (f0->buffer == f2->buffer && f1->buffer != f3->buffer) { in compute_breaks()
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-aat-layout-kerx-table.hh115 machine.kern (c->font, c->buffer, c->plan->kern_mask); in apply()
236 hb_buffer_t *buffer = driver->buffer; in transition() local
245 stack[depth++] = buffer->idx; in transition()
274 if (idx >= buffer->len) continue; in transition()
280 hb_glyph_position_t &o = buffer->pos[idx]; in transition()
282 if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction)) in transition()
297 buffer->scratch_flags |= HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT; in transition()
300 else if (buffer->info[idx].mask & kern_mask) in transition()
320 buffer in transition()
498 hb_buffer_t *buffer = driver->buffer; transition() local
[all...]
/third_party/NuttX/drivers/bch/
H A Dbchlib_read.c61 ssize_t bchlib_read(void *handle, char *buffer, loff_t offset, size_t len) in bchlib_read() argument
95 /* Read the sector into the sector buffer */ in bchlib_read()
103 /* Copy the tail end of the sector to the user buffer */ in bchlib_read()
114 ret = LOS_CopyFromKernel(buffer, len, &bch->buffer[sectoffset], nbytes); in bchlib_read()
131 buffer += nbytes; in bchlib_read()
136 * into the user buffer. in bchlib_read()
147 ret = los_disk_read(bch->disk->disk_id, (void *)buffer, sector + bch->sectstart, nsectors, TRUE); in bchlib_read()
166 buffer += nbytes; in bchlib_read()
174 /* Read the sector into the sector buffer */ in bchlib_read()
[all...]
/third_party/libuv/test/
H A Dtest-process-title-threadsafe.c43 char buffer[512]; in getter_thread_body() local
49 ASSERT_OK(uv_get_process_title(buffer, sizeof(buffer))); in getter_thread_body()
55 len = strlen(buffer); in getter_thread_body()
59 0 == strncmp(buffer, titles[0], len) || in getter_thread_body()
60 0 == strncmp(buffer, titles[1], len) || in getter_thread_body()
61 0 == strncmp(buffer, titles[2], len) || in getter_thread_body()
62 0 == strncmp(buffer, titles[3], len)); in getter_thread_body()
/third_party/node/test/fixtures/wpt/wasm/jsapi/constructor/
H A Dcompile.any.js62 const buffer = new Uint8Array();
63 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.compile(buffer));
64 }, "Empty buffer");
67 const buffer = new Uint8Array(Array.from(emptyModuleBinary).concat([0, 0]));
68 return promise_rejects_js(t, WebAssembly.CompileError, WebAssembly.compile(buffer));
80 const buffer = new WasmModuleBuilder().toBuffer();
81 assert_equals(buffer[0], 0);
82 const promise = WebAssembly.compile(buffer);
83 buffer[0] = 1;
85 }, "Changing the buffer");
[all...]
/third_party/node/test/parallel/
H A Dtest-stream2-readable-from-list.js56 let ret = fromList(6, { buffer: list, length: 16 });
60 ret = fromList(2, { buffer: list, length: 10 });
64 ret = fromList(2, { buffer: list, length: 8 });
68 ret = fromList(100, { buffer: list, length: 6 });
84 let ret = fromList(6, { buffer: list, length: 16, decoder: true });
88 ret = fromList(2, { buffer: list, length: 10, decoder: true });
92 ret = fromList(2, { buffer: list, length: 8, decoder: true });
96 ret = fromList(100, { buffer: list, length: 6, decoder: true });
/third_party/skia/src/core/
H A DSkRecordedDrawable.cpp40 void SkRecordedDrawable::flatten(SkWriteBuffer& buffer) const { in flatten()
42 buffer.writeRect(fBounds); in flatten()
64 pictureData.flatten(buffer); in flatten()
67 sk_sp<SkFlattenable> SkRecordedDrawable::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument
70 buffer.readRect(&bounds); in CreateProc()
74 info.setVersion(buffer.getVersion()); in CreateProc()
76 std::unique_ptr<SkPictureData> pictureData(SkPictureData::CreateFromBuffer(buffer, info)); in CreateProc()
84 playback.draw(recorder.beginRecording(bounds), nullptr, &buffer); in CreateProc()
/third_party/skia/src/shaders/gradients/
H A DSkRadialGradient.cpp43 sk_sp<SkFlattenable> SkRadialGradient::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument
45 if (!desc.unflatten(buffer)) { in CreateProc()
48 const SkPoint center = buffer.readPoint(); in CreateProc()
49 const SkScalar radius = buffer.readScalar(); in CreateProc()
55 void SkRadialGradient::flatten(SkWriteBuffer& buffer) const { in flatten()
56 this->INHERITED::flatten(buffer); in flatten()
57 buffer.writePoint(fCenter); in flatten()
58 buffer.writeScalar(fRadius); in flatten()
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
H A DVulkanErrorInjectorTests.cpp48 // Check that making a buffer works. in TEST_P()
50 VkBuffer buffer = VK_NULL_HANDLE; in TEST_P() local
52 mDeviceVk->fn.CreateBuffer(mDeviceVk->GetVkDevice(), &createInfo, nullptr, &buffer), in TEST_P()
54 mDeviceVk->fn.DestroyBuffer(mDeviceVk->GetVkDevice(), buffer, nullptr); in TEST_P()
58 VkBuffer buffer = VK_NULL_HANDLE; in TEST_P()
60 mDeviceVk->fn.CreateBuffer(mDeviceVk->GetVkDevice(), &createInfo, nullptr, &buffer), in TEST_P()
64 EXPECT_EQ(buffer, VK_NULL_HANDLE); in TEST_P()
68 EXPECT_NE(buffer, VK_NULL_HANDLE); in TEST_P()
70 // We never use the buffer, only test mocking errors on creation. Cleanup now. in TEST_P()
71 mDeviceVk->fn.DestroyBuffer(mDeviceVk->GetVkDevice(), buffer, nullpt in TEST_P()
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_descriptors.c66 /* NULL image and buffer descriptor for textures (alpha = 1) and images
75 * This is the only reason why the buffer descriptor must be in words [4:7].
79 /* the rest must contain zeros, which is also used by the buffer
85 /* the rest must contain zeros, which is also used by the buffer
124 si_resource_reference(&desc->buffer, NULL); in si_release_descriptors()
146 /* The buffer is already in the buffer list. */ in si_upload_descriptors()
147 si_resource_reference(&desc->buffer, NULL); in si_upload_descriptors()
157 (struct pipe_resource **)&desc->buffer, (void **)&ptr); in si_upload_descriptors()
158 if (!desc->buffer) { in si_upload_descriptors()
1222 struct pipe_resource *buffer = NULL; si_set_constant_buffer() local
1480 si_set_ring_buffer(struct si_context *sctx, uint slot, struct pipe_resource *buffer, unsigned stride, unsigned num_records, bool add_tid, bool swizzle, unsigned element_size, unsigned index_stride, uint64_t offset) si_set_ring_buffer() argument
1668 struct pipe_resource *buffer = buffers->buffers[i]; si_reset_buffer_resources() local
1692 struct si_resource *buffer = si_resource(buf); si_rebind_buffer() local
1726 struct pipe_resource *buffer = buffers->buffers[i]; si_rebind_buffer() local
1782 struct pipe_resource *buffer = samplers->views[i]->texture; si_rebind_buffer() local
1809 struct pipe_resource *buffer = images->views[i].resource; si_rebind_buffer() local
1839 struct pipe_resource *buffer = view->texture; si_rebind_buffer() local
1861 struct pipe_resource *buffer = view->resource; si_rebind_buffer() local
[all...]
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A Dpngimage.c368 struct buffer_list *next; /* next buffer in list */
369 png_byte buffer[1024]; /* the actual buffer */ member
372 struct buffer struct
374 struct buffer_list *last; /* last buffer in use */
375 size_t end_count; /* bytes in the last buffer */
376 struct buffer_list *current; /* current buffer being read */
378 struct buffer_list first; /* the very first buffer */
382 buffer_init(struct buffer *buffer) in buffer_init() argument
402 buffer_destroy(struct buffer *buffer) buffer_destroy() argument
411 buffer_start_write(struct buffer *buffer) buffer_start_write() argument
420 buffer_start_read(struct buffer *buffer) buffer_start_read() argument
459 buffer_from_file(struct buffer *buffer, FILE *fp) buffer_from_file() argument
1269 buffer_write(struct display *dp, struct buffer *buffer, png_bytep data, size_t size) buffer_write() argument
[all...]
/third_party/python/Modules/
H A Dzlibmodule.c12 // Blocks output buffer wrappers
22 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, in OutputBuffer_InitAndGrow() argument
28 buffer, max_length, (void**) next_out); in OutputBuffer_InitAndGrow()
36 OutputBuffer_Grow(_BlocksOutputBuffer *buffer, in OutputBuffer_Grow() argument
42 buffer, (void**) next_out, (Py_ssize_t) *avail_out); in OutputBuffer_Grow()
48 OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_GetDataSize() argument
50 return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out); in OutputBuffer_GetDataSize()
54 OutputBuffer_Finish(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_Finish() argument
56 return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out); in OutputBuffer_Finish()
60 OutputBuffer_OnError(_BlocksOutputBuffer *buffer) in OutputBuffer_OnError() argument
90 OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *window, Py_ssize_t init_size, Bytef **next_out, uint32_t *avail_out) OutputBuffer_WindowInitWithSize() argument
113 OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, Bytef **next_out, uint32_t *avail_out) OutputBuffer_WindowGrow() argument
152 OutputBuffer_WindowFinish(_BlocksOutputBuffer *buffer, _Uint32Window *window, uint32_t avail_out) OutputBuffer_WindowFinish() argument
160 OutputBuffer_WindowOnError(_BlocksOutputBuffer *buffer, _Uint32Window *window) OutputBuffer_WindowOnError() argument
326 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_compress_impl() local
427 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_decompress_impl() local
758 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Compress_compress_impl() local
879 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Decompress_decompress_impl() local
989 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Compress_flush_impl() local
1257 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Decompress_flush_impl() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dflacdec.c51 uint8_t *buffer=NULL; in flac_read_header() local
80 buffer = av_mallocz(metadata_size + AV_INPUT_BUFFER_PADDING_SIZE); in flac_read_header()
81 if (!buffer) { in flac_read_header()
84 if (avio_read(s->pb, buffer, metadata_size) != metadata_size) { in flac_read_header()
107 st->codecpar->extradata = buffer; in flac_read_header()
109 buffer = NULL; in flac_read_header()
129 offset = buffer + 395; in flac_read_header()
134 if (offset + 36 - buffer > metadata_size) in flac_read_header()
146 av_freep(&buffer); in flac_read_header()
148 ret = ff_flac_parse_picture(s, &buffer, metadata_siz in flac_read_header()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DIndexDataManager.cpp87 IndexBufferInterface *buffer, in StreamInIndexBuffer()
99 "Reserving indices exceeds the maximum buffer size.", GL_OUT_OF_MEMORY); in StreamInIndexBuffer()
102 ANGLE_TRY(buffer->reserveBufferSpace(context, bufferSizeRequired, dstType)); in StreamInIndexBuffer()
105 ANGLE_TRY(buffer->mapBuffer(context, bufferSizeRequired, &output, offset)); in StreamInIndexBuffer()
109 ANGLE_TRY(buffer->unmapBuffer(context)); in StreamInIndexBuffer()
130 // possible in DX and requires streaming (Case 1). If the GL indices are specified with a buffer
132 // When we have a buffer with an unsupported format (subcase b) then we need to do some translation:
134 // translated copy of the index buffer.
147 BufferD3D *buffer = glBuffer ? GetImplAs<BufferD3D>(glBuffer) : nullptr; in prepareIndexData() local
150 translated->srcIndexData.srcBuffer = buffer; in prepareIndexData()
86 StreamInIndexBuffer(const gl::Context *context, IndexBufferInterface *buffer, const void *data, unsigned int count, gl::DrawElementsType srcType, gl::DrawElementsType dstType, bool usePrimitiveRestartFixedIndex, unsigned int *offset) StreamInIndexBuffer() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_asynchat.py44 self.buffer = b""
46 while SERVER_QUIT not in self.buffer:
50 self.buffer = self.buffer + data
53 self.buffer = self.buffer.replace(SERVER_QUIT, b'')
62 while self.buffer:
63 n = conn.send(self.buffer[:self.chunk_size])
65 self.buffer = self.buffer[
[all...]
/third_party/ffmpeg/libavutil/
H A Dencryption_info.c90 AVEncryptionInfo *av_encryption_info_get_side_data(const uint8_t* buffer, size_t size) in av_encryption_info_get_side_data() argument
95 if (!buffer || size < FF_ENCRYPTION_INFO_EXTRA) in av_encryption_info_get_side_data()
98 key_id_size = AV_RB32(buffer + 12); in av_encryption_info_get_side_data()
99 iv_size = AV_RB32(buffer + 16); in av_encryption_info_get_side_data()
100 subsample_count = AV_RB32(buffer + 20); in av_encryption_info_get_side_data()
109 info->scheme = AV_RB32(buffer); in av_encryption_info_get_side_data()
110 info->crypt_byte_block = AV_RB32(buffer + 4); in av_encryption_info_get_side_data()
111 info->skip_byte_block = AV_RB32(buffer + 8); in av_encryption_info_get_side_data()
112 memcpy(info->key_id, buffer + 24, key_id_size); in av_encryption_info_get_side_data()
113 memcpy(info->iv, buffer in av_encryption_info_get_side_data()
127 uint8_t *buffer, *cur_buffer; av_encryption_info_add_side_data() local
365 uint8_t *buffer, *cur_buffer; av_encryption_init_info_add_side_data() local
[all...]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationKeys.java34 * Needed in Java for when we write to the buffer directly.
124 * the length of buffer required to store the entire data (i.e. already appended
148 byte[] buffer = new byte[INITIAL_CAPACITY]; field in CollationKeys.SortKeyLevel
170 return buffer[index]; in getAt()
174 return buffer; in data()
178 if (len < buffer.length || ensureCapacity(1)) { in appendByte()
179 buffer[len++] = (byte) b; in appendByte()
188 if ((len + appendLength) <= buffer.length || ensureCapacity(appendLength)) { in appendWeight16()
189 buffer[len++] = b0; in appendWeight16()
191 buffer[le in appendWeight16()
[all...]

Completed in 20 milliseconds

1...<<21222324252627282930>>...241