/third_party/libuv/test/ |
H A D | test-fs.c | 130 static char test_buf[] = "test-buffer\n"; 131 static char test_buf2[] = "second-buffer\n"; 3094 "test-buffer\n\0test-buffer\n\0", in fs_file_open_append() 3095 sizeof("test-buffer\n\0test-buffer\n\0") - 1)); in fs_file_open_append() 3408 char* buffer; in fs_write_alotof_bufs() local 3448 buffer = malloc(sizeof(test_buf) * iovcount); in fs_write_alotof_bufs() 3449 ASSERT_NOT_NULL(buffer); in fs_write_alotof_bufs() 3452 iovs[index] = uv_buf_init(buffer in fs_write_alotof_bufs() 3516 char* buffer; fs_write_alotof_bufs_with_offset() local 3759 char* buffer; test_fs_partial() local [all...] |
H A D | test-spawn.c | 590 char buffer[] = "hello-from-spawn_stdin"; in TEST_IMPL() local 606 buf.base = buffer; in TEST_IMPL() 607 buf.len = sizeof(buffer); in TEST_IMPL() 619 ASSERT_OK(strcmp(buffer, output)); in TEST_IMPL() 1013 static char buffer[] = "hello-from-spawn_stdin\n"; in TEST_IMPL() local 1027 buf = uv_buf_init(buffer, sizeof(buffer)); in TEST_IMPL()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/ |
H A D | esextcTextureCubeMapArraySampling.cpp | 121 const glw::GLchar* const TextureCubeMapArraySamplingTest::compute_shader_buffer = ") buffer "; 2392 /* layout(shared) buffer attribute { type attribute_data[]; }; */ in getSamplingComputeShaderCode() 3514 /** Setup shader storabe buffer for use with compute shader 3529 const bufferDefinition* buffer = 0; in setupSharedStorageBuffer() local 3534 buffer = &buffers.postion; in setupSharedStorageBuffer() 3537 buffer = &buffers.texture_coordinate; in setupSharedStorageBuffer() 3540 buffer = &buffers.texture_coordinate_for_gather; in setupSharedStorageBuffer() 3543 buffer = &buffers.lod; in setupSharedStorageBuffer() 3546 buffer = &buffers.grad_x; in setupSharedStorageBuffer() 3549 buffer in setupSharedStorageBuffer() 5088 const bufferDefinition* buffer = 0; global() local [all...] |
/third_party/python/Modules/ |
H A D | _pickle.c | 139 /* Initial size of the write buffer of Pickler. */ 643 PyObject *output_buffer; /* Write into a local bytearray buffer before 682 Py_buffer buffer; member 1048 * file and reuse the pickler buffer for the next frame so as in _Pickler_OpcodeBoundary() 1070 char *buffer; in _Pickler_Write() local 1083 /* Make place in buffer for the pickle chunk */ in _Pickler_Write() 1092 buffer = PyBytes_AS_STRING(self->output_buffer); in _Pickler_Write() 1099 buffer[frame_start + i] = 0xFE; in _Pickler_Write() 1106 buffer[self->output_len + i] = s[i]; in _Pickler_Write() 1110 memcpy(buffer in _Pickler_Write() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/multiview/ |
H A D | vktMultiViewRenderTests.cpp | 718 // Init host buffer data in createVertexBuffer() 1229 Move<VkBuffer> buffer; in readImage() local 1233 // Create destination buffer in readImage() 1247 buffer = createBuffer(*m_device, *m_logicalDevice, &bufferParams); in readImage() 1248 bufferAlloc = m_allocator->allocate(getBufferMemoryRequirements(*m_device, *m_logicalDevice, *buffer), MemoryRequirement::HostVisible); in readImage() 1249 VK_CHECK(m_device->bindBufferMemory(*m_logicalDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in readImage() 1263 *buffer, // VkBuffer buffer; in readImage() 1268 // Copy image to buffer in readImage() 1301 m_device->cmdCopyImageToBuffer(*m_cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *buffer, in readImage() 1831 Move<VkBuffer> buffer; setImageData() local 3568 Move<VkBuffer> buffer; readImage() local [all...] |
/third_party/vulkan-loader/loader/ |
H A D | trampoline.c | 1233 LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory mem, in vkBindBufferMemory() argument 1242 return disp->BindBufferMemory(device, buffer, mem, offset); in vkBindBufferMemory() 1257 LOADER_EXPORT VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, in vkGetBufferMemoryRequirements() argument 1266 disp->GetBufferMemoryRequirements(device, buffer, pMemoryRequirements); in vkGetBufferMemoryRequirements() 1509 LOADER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer(VkDevice device, VkBuffer buffer, in vkDestroyBuffer() argument 1518 disp->DestroyBuffer(device, buffer, pAllocator); in vkDestroyBuffer() 2177 LOADER_EXPORT VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, in vkCmdBindIndexBuffer() argument 2186 disp->CmdBindIndexBuffer(commandBuffer, buffer, offset, indexType); in vkCmdBindIndexBuffer() 2227 LOADER_EXPORT VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, in vkCmdDrawIndirect() argument 2236 disp->CmdDrawIndirect(commandBuffer, buffer, offse in vkCmdDrawIndirect() 2239 vkCmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) vkCmdDrawIndexedIndirect() argument 2262 vkCmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset) vkCmdDispatchIndirect() argument 3074 vkCmdDrawIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride) vkCmdDrawIndirectCount() argument 3086 vkCmdDrawIndexedIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride) vkCmdDrawIndexedIndirectCount() argument [all...] |
/third_party/node/deps/v8/src/d8/ |
H A D | d8.cc | 807 DCHECK_NOT_NULL(snapshot_data.buffer); in ExecuteString() 808 WriteChars(web_snapshot_output_file_name, snapshot_data.buffer, in ExecuteString() 2044 snapshot_data_shared->buffer, in RealmUseWebSnapshot() 2330 char buffer[kBufferSize]; in ReadFromStdin() local 2335 // not been fully read into the buffer yet (does not end with '\n'). in ReadFromStdin() 2338 input = fgets(buffer, kBufferSize, stdin); in ReadFromStdin() 2340 length = static_cast<int>(strlen(buffer)); in ReadFromStdin() 2343 } else if (buffer[length - 1] != '\n') { in ReadFromStdin() 2346 String::NewFromUtf8(isolate, buffer, NewStringType::kNormal, length) in ReadFromStdin() 2348 } else if (length > 1 && buffer[lengt in ReadFromStdin() 3681 Local<v8::ArrayBuffer> buffer = ArrayBuffer::New(isolate, length); ReadBuffer() local 3716 WriteChars(const char* name, uint8_t* buffer, size_t buffer_size) WriteChars() argument 3924 char* buffer = new char[script_size + 1]; Execute() local [all...] |
/third_party/curl/lib/ |
H A D | multi.c | 761 char buffer[256]; in multi_done() local 772 msnprintf(buffer, sizeof(buffer), in multi_done() 781 infof(data, "%s", buffer); in multi_done() 787 Curl_safefree(data->state.buffer); in multi_done() 1894 if(!data->state.buffer) { 1895 data->state.buffer = malloc(data->set.buffer_size + 1); 1896 if(!data->state.buffer) 2453 DEBUGASSERT(data->state.buffer);
|
/third_party/mesa3d/src/intel/blorp/ |
H A D | blorp_genX_exec.h | 132 if (address.buffer == NULL) { in _blorp_combine_address() 326 * to the vertex data buffer. in blorp_emit_input_varying_data() 347 * buffer before we execute the 3DPRIMITIVE. We already copied the in blorp_emit_input_varying_data() 348 * value of params->wm_inputs.clear_color into the vertex buffer in the in blorp_emit_input_varying_data() 483 * include the fixed values in the vertex buffer. Vertex fetcher can be in blorp_emit_vertex_elements() 485 * instead of reading them from the buffer. in blorp_emit_vertex_elements() 1487 /* On gfx12, implicit CCS has no aux buffer */ in blorp_emit_surface_state() 1489 (surface->aux_addr.buffer != NULL); in blorp_emit_surface_state() 1504 GFX_VER >= 10 && (surface->clear_color_addr.buffer != NULL); in blorp_emit_surface_state() 1527 * surface buffer addresse in blorp_emit_surface_state() [all...] |
/third_party/python/Tools/msi/bundle/bootstrap/ |
H A D | PythonBootstrapperApplication.cpp | 572 DWORD dataType = 0, buffer = 0, bufferLen = sizeof(buffer); in SuccessPage_Show() local 583 (LPBYTE)&buffer, &bufferLen); in SuccessPage_Show() 589 if (res == ERROR_SUCCESS && dataType == REG_DWORD && buffer == 0) { in SuccessPage_Show() 2884 BYTE buffer[1024]; in LoadTargetDirFromKey() local 2885 DWORD bufferLen = sizeof(buffer); in LoadTargetDirFromKey() 2899 res = RegQueryValueExW(hKey, nullptr, nullptr, &dataType, buffer, &bufferLen); in LoadTargetDirFromKey() 2900 if (res == ERROR_SUCCESS && dataType == REG_SZ && bufferLen < sizeof(buffer)) { in LoadTargetDirFromKey() 2901 pEngine->SetVariableString(L"TargetDir", reinterpret_cast<wchar_t*>(buffer)); in LoadTargetDirFromKey()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | Texture.cpp | 2016 gl::Buffer *buffer, in setBuffer() 2019 // Use 0 to indicate that the size is taken from whatever size the buffer has when the texture in setBuffer() 2020 // buffer is used. in setBuffer() 2021 return setBufferRange(context, buffer, internalFormat, 0, 0); in setBuffer() 2025 gl::Buffer *buffer, in setBufferRange() 2031 mState.mBuffer.set(context, buffer, offset, size); in setBufferRange() 2035 if (buffer == nullptr) in setBufferRange() 2049 InitState initState = buffer->initState(); in setBufferRange() 2054 // Observe modifications to the buffer, so that extents can be updated. in setBufferRange() 2055 mBufferObserver.bind(buffer); in setBufferRange() 2015 setBuffer(const gl::Context *context, gl::Buffer *buffer, GLenum internalFormat) setBuffer() argument 2024 setBufferRange(const gl::Context *context, gl::Buffer *buffer, GLenum internalFormat, GLintptr offset, GLsizeiptr size) setBufferRange() argument 2305 const gl::Buffer *buffer = mState.mBuffer.get(); onSubjectStateChange() local [all...] |
/third_party/curl/lib/vtls/ |
H A D | vtls.c | 828 static size_t multissl_version(char *buffer, size_t size); 830 void Curl_ssl_version(char *buffer, size_t size) in Curl_ssl_version() argument 833 (void)multissl_version(buffer, size); in Curl_ssl_version() 835 (void)Curl_ssl->version(buffer, size); in Curl_ssl_version() 1090 * Allocate buffer for the pinned key in Curl_pin_peer_pubkey() 1385 static size_t multissl_version(char *buffer, size_t size) in multissl_version() argument 1418 strcpy(buffer, backends); in multissl_version() 1420 *buffer = 0; /* did not fit */ in multissl_version() 1722 /* Do receive until we fill the buffer somehwhat or EGAIN, error or EOF */ in ssl_cf_recv()
|
/third_party/backends/backend/ |
H A D | mustek_pp_cis.c | 303 Since we use a static temporary buffer, we must make sure that the in Mustek_PP_1015_show_val() 304 buffer isn't altered while it is still in use (typically because in Mustek_PP_1015_show_val() 306 Therefore the buffer is organized as a ring buffer. If should contain in Mustek_PP_1015_show_val() 1622 cis_check_result(SANE_Byte* buffer, int pixel) in cis_check_result() argument 1627 if (buffer[i] > maxVal) maxVal = buffer[i]; in cis_check_result() 2084 * I assume that the buffer is read 100 times to allow the lamp to in cis_calibrate() 2673 /* Allocate memory for temporary color buffer */ in cis_drv_start() 2678 DBG (2, "cis_drv_start: not enough memory for temporary buffer\ in cis_drv_start() 2785 cis_drv_read(SANE_Handle hndl, SANE_Byte *buffer) cis_drv_read() argument [all...] |
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_transfer.c | 285 /* Set beginning of current buffer */ in usbd_transfer_setup_sub_malloc() 286 buf = parm->dma_page_cache_ptr->buffer; in usbd_transfer_setup_sub_malloc() 296 pc->buffer = USB_ADD_BYTES(buf, y * size); in usbd_transfer_setup_sub_malloc() 319 * transfer. This function will setup correct packet sizes, buffer 617 * type of buffer: in usbd_transfer_setup_sub() 701 * a local buffer: in usbd_transfer_setup_sub() 715 xfer->local_buffer = page_info.buffer; in usbd_transfer_setup_sub() 744 * Compute maximum buffer size in usbd_transfer_setup_sub() 2039 return (page_info.buffer); in usbd_xfer_get_frame_buffer() 2070 * This function sets the pointer of the buffer tha [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/ |
H A D | RBBITestMonkey.java | 2189 StringBuilder buffer = new StringBuilder(); in RunMonkey() 2190 buffer.append("\n") in RunMonkey() 2200 buffer.append((ci == i) ? " --→" : " ") in RunMonkey() 2207 buffer.append("\\U").append(String.format("%08x", (int) c)); in RunMonkey() 2209 buffer.append(" \\u").append(String.format("%04x", (int) c)); in RunMonkey() 2212 buffer.append( in RunMonkey() 2220 errln(buffer.toString()); in RunMonkey()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
H A D | RBBITestMonkey.java | 2196 StringBuilder buffer = new StringBuilder(); in RunMonkey() 2197 buffer.append("\n") in RunMonkey() 2207 buffer.append((ci == i) ? " --→" : " ") in RunMonkey() 2214 buffer.append("\\U").append(String.format("%08x", c)); in RunMonkey() 2216 buffer.append(" \\u").append(String.format("%04x", c)); in RunMonkey() 2219 buffer.append( in RunMonkey() 2227 errln(buffer.toString()); in RunMonkey()
|
/third_party/icu/icu4c/source/common/unicode/ |
H A D | unistr.h | 202 * and the internal buffer would hold up to 11 char16_ts in that case. 252 * - If the buffer passed to an insert/append/replace operation is owned by the 284 * in an allocated and shared buffer, or in an outside buffer that is "aliased". 287 * Also, the internal buffer is accessible via special functions. 1449 * If the string aliases to `dst` itself as an external buffer, 1477 * If the string aliases to `dest` itself as an external buffer, 1480 * @param dest Destination string buffer. 1539 * so that one can allocate a larger buffer and call the function again 1545 * @param target the target buffer fo 3128 UnicodeString(uint16_t *buffer, int32_t buffLength, int32_t buffCapacity) UnicodeString() argument 3142 UnicodeString(wchar_t *buffer, int32_t buffLength, int32_t buffCapacity) UnicodeString() argument [all...] |
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_descriptor_set.c | 245 return descriptor->buffer_view->buffer->mem->bo; in v3dv_descriptor_map_get_texture_bo() 759 * specifies the size of the buffer in bytes. in v3dv_CreateDescriptorSetLayout() 998 V3DV_FROM_HANDLE(v3dv_buffer, buffer, buffer_info->buffer); in write_buffer_descriptor() 1001 descriptor->buffer = buffer; in write_buffer_descriptor() 1004 descriptor->range = buffer->size - buffer_info->offset; in write_buffer_descriptor() 1080 descriptor->buffer = NULL; in write_inline_uniform_descriptor() 1088 * buffer as the largest range of data that the client has written to it. in write_inline_uniform_descriptor()
|
/third_party/node/deps/v8/src/wasm/ |
H A D | wasm-engine.cc | 800 base::EmbeddedVector<char, 32> buffer; in CreateWasmScript() local 803 int url_len = SNPrintF(buffer, "wasm://wasm/%08x", hash); in CreateWasmScript() 804 DCHECK(url_len >= 0 && url_len < buffer.length()); in CreateWasmScript() 806 ->NewStringFromUtf8(buffer.SubVector(0, url_len), in CreateWasmScript() 811 int hash_len = SNPrintF(buffer, "-%08x", hash); in CreateWasmScript() 812 DCHECK(hash_len >= 0 && hash_len < buffer.length()); in CreateWasmScript() 820 ->NewStringFromUtf8(buffer.SubVector(0, hash_len)) in CreateWasmScript() 1395 // The active stack's jump buffer does not match the current state, use in ReportLiveCodeFromStackForGC()
|
/third_party/node/deps/icu-small/source/common/unicode/ |
H A D | unistr.h | 202 * and the internal buffer would hold up to 11 char16_ts in that case. 252 * - If the buffer passed to an insert/append/replace operation is owned by the 284 * in an allocated and shared buffer, or in an outside buffer that is "aliased". 287 * Also, the internal buffer is accessible via special functions. 1449 * If the string aliases to `dst` itself as an external buffer, 1477 * If the string aliases to `dest` itself as an external buffer, 1480 * @param dest Destination string buffer. 1539 * so that one can allocate a larger buffer and call the function again 1545 * @param target the target buffer fo 3128 UnicodeString(uint16_t *buffer, int32_t buffLength, int32_t buffCapacity) UnicodeString() argument 3142 UnicodeString(wchar_t *buffer, int32_t buffLength, int32_t buffCapacity) UnicodeString() argument [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_drawpixels.c | 86 * of the image in a malloc'd buffer. 982 /* writing stencil to a combined depth+stencil buffer */ in draw_stencil_pixels() 1119 /* unmap the stencil buffer */ in draw_stencil_pixels() 1354 * into the constant buffer, we need to update them in st_DrawPixels() 1423 ubyte *buffer; in copy_stencil_pixels() local 1426 buffer = malloc(width * height * sizeof(ubyte)); in copy_stencil_pixels() 1427 if (!buffer) { in copy_stencil_pixels() 1438 &ctx->DefaultPacking, buffer); in copy_stencil_pixels() 1446 printf("%02x ", buffer[col + row * width]); in copy_stencil_pixels() 1464 /* map the stencil buffer */ in copy_stencil_pixels() [all...] |
/third_party/node/deps/v8/src/heap/ |
H A D | gc-tracer.cc | 666 base::Vector<char> buffer(raw_buffer, kBufferSize); in Output() 669 base::VSNPrintF(buffer, format, arguments2); in Output() 672 heap_->AddToRingBuffer(buffer.begin()); in Output() 698 // Avoid PrintF as Output also appends the string to the tracing ring buffer in Print() 1061 double GCTracer::AverageSpeed(const base::RingBuffer<BytesAndDuration>& buffer, in AverageSpeed() argument 1063 BytesAndDuration sum = buffer.Sum( in AverageSpeed() 1081 const base::RingBuffer<BytesAndDuration>& buffer) { in AverageSpeed() 1082 return AverageSpeed(buffer, MakeBytesAndDuration(0, 0), 0); in AverageSpeed() 1080 AverageSpeed( const base::RingBuffer<BytesAndDuration>& buffer) AverageSpeed() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
H A D | vktBindingBufferDeviceAddressTests.cpp | 180 TCU_THROW(NotSupportedError, "Physical storage buffer pointers not supported"); in checkSupport() 198 TCU_THROW(NotSupportedError, "Capture/replay of physical storage buffer pointers not supported"); in checkSupport() 379 std::string baseStorage = m_data.base == BASE_UBO ? "uniform" : "buffer"; in initPrograms() 380 std::string memberStorage = "buffer"; in initPrograms() 723 0, // VkBuffer buffer in iterate() 780 bufferDeviceAddressInfo.buffer = **buffers[i]; in iterate() 806 bufferDeviceAddressInfo.buffer = **buffers[i]; in iterate() 832 bufferDeviceAddressInfo.buffer = **buffers[i]; in iterate() 840 // Create a buffer and compute the address for each "align" bytes. in iterate() 843 bufferDeviceAddressInfo.buffer in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineBindVertexBuffers2Tests.cpp | 81 //make a buffer to read an image back after rendering 115 void copyAndFlush(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::BufferWithMemory& buffer, size_t offset, const void* src, size_t size) in copyAndFlush() argument 117 auto& alloc = buffer.getAllocation(); in copyAndFlush() 297 //buffer to read the output image in iterate() 520 log << tcu::TestLog::Message << "binding " << i << ", buffer " << buffers[i] << ", offset " << offsets[i] << ", size " << sizes[i] << ", stride " << strides[i] << tcu::TestLog::EndMessage; in iterate() 658 // color buffer binding in createPipeline() 663 // vertex buffer binding in createPipeline() 921 de::SharedPtr<vk::BufferWithMemory> buffer(new vk::BufferWithMemory(vk, device, allocator, createInfo, vk::MemoryRequirement::HostVisible)); in createBuffers() 922 copyAndFlush(vk, device, *buffer, 0, points.data(), deUint32(points.size() * sizeof(float))); in createBuffers() 927 buffers.push_back(buffer); in createBuffers() [all...] |
H A D | vktPipelineImageSlicedViewOf3DTests.cpp | 400 de::MovePtr<tcu::PixelBufferAccess> makePixelBufferAccess (const BufferWithMemory& buffer, const tcu::IVec3& size, const tcu::TextureFormat& format) in makePixelBufferAccess() 402 de::MovePtr<tcu::PixelBufferAccess> bufferImage (new tcu::PixelBufferAccess(format, size, buffer.getAllocation().getHostPtr())); in makePixelBufferAccess() 419 de::MovePtr<BufferWithMemory> buffer (new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, MemoryRequirement::HostVisible)); in makeTransferBuffer() 420 return buffer; in makeTransferBuffer() 428 auto buffer = makeTransferBuffer(extent, format, vkd, device, alloc); in makeAndFillTransferBuffer() local 430 auto bufferImg = makePixelBufferAccess(*buffer, size, format); in makeAndFillTransferBuffer() 446 return buffer; in makeAndFillTransferBuffer() 611 // Command pool and buffer. in runSamplingPipeline() 686 // Sync shader writes before copying to verification buffer. in runSamplingPipeline() 690 // Copy storage image to verification buffer in runSamplingPipeline() [all...] |