| /third_party/rust/crates/clang-sys/build/ |
| H A D | dynamic.rs | 17 let mut buffer = [0; 5]; in parse_elf_header() variables 18 file.read_exact(&mut buffer)?; in parse_elf_header() 19 if buffer[..4] == [127, 69, 76, 70] { in parse_elf_header() 20 Ok(buffer[4]) in parse_elf_header() 31 let mut buffer = [0; 4]; in parse_pe_header() variables 34 file.read_exact(&mut buffer)?; in parse_pe_header() 35 let offset = i32::from_le_bytes(buffer); in parse_pe_header() 39 file.read_exact(&mut buffer)?; in parse_pe_header() 40 if buffer != [80, 69, 0, 0] { in parse_pe_header() 45 let mut buffer in parse_pe_header() variables [all...] |
| /third_party/vk-gl-cts/external/amber/src/src/ |
| H A D | executor.cc | 110 auto* buffer = cmd->AsProbe()->GetBuffer(); in ExecuteCommand() local 111 assert(buffer); in ExecuteCommand() 113 Format* fmt = buffer->GetFormat(); in ExecuteCommand() 114 return verifier_.Probe(cmd->AsProbe(), fmt, buffer->GetElementStride(), in ExecuteCommand() 115 buffer->GetRowStride(), buffer->GetWidth(), in ExecuteCommand() 116 buffer->GetHeight(), buffer->ValuePtr()->data()); in ExecuteCommand() 121 const auto* buffer = cmd->AsProbe()->GetBuffer(); in ExecuteCommand() local 122 assert(buffer); in ExecuteCommand() [all...] |
| /third_party/skia/src/gpu/vk/ |
| H A D | GrVkPipelineStateDataManager.cpp | 76 void* buffer = this->getBufferPtrAndMarkDirty(uni); in set1iv() local 78 memcpy(buffer, v, arrayCount * sizeof(int32_t)); in set1iv() 94 void* buffer = this->getBufferPtrAndMarkDirty(uni); in set1fv() local 96 memcpy(buffer, v, arrayCount * sizeof(float)); in set1fv() 112 void* buffer = this->getBufferPtrAndMarkDirty(uni); in set2iv() local 114 memcpy(buffer, v, arrayCount * 2 * sizeof(int32_t)); in set2iv() 130 void* buffer = this->getBufferPtrAndMarkDirty(uni); in set2fv() local 132 memcpy(buffer, v, arrayCount * 2 * sizeof(float)); in set2fv() 149 void* buffer = fUniformData.get(); in setMatrix2fv() local 153 buffer in setMatrix2fv() [all...] |
| /third_party/skia/src/effects/imagefilters/ |
| H A D | SkImageImageFilter.cpp | 74 sk_sp<SkFlattenable> SkImageImageFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 76 if (buffer.isVersionLT(SkPicturePriv::kImageFilterImageSampling_Version)) { in CreateProc() 77 sampling = SkSamplingPriv::FromFQ(buffer.checkFilterQuality(), kLinear_SkMediumAs); in CreateProc() 79 sampling = buffer.readSampling(); in CreateProc() 83 buffer.readRect(&src); in CreateProc() 84 buffer.readRect(&dst); in CreateProc() 86 sk_sp<SkImage> image(buffer.readImage()); in CreateProc() 94 void SkImageImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten() 95 SkSamplingPriv::Write(buffer, fSampling); in flatten() 96 buffer in flatten() [all...] |
| H A D | SkDropShadowImageFilter.cpp | 79 sk_sp<SkFlattenable> SkDropShadowImageFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 81 SkScalar dx = buffer.readScalar(); in CreateProc() 82 SkScalar dy = buffer.readScalar(); in CreateProc() 83 SkScalar sigmaX = buffer.readScalar(); in CreateProc() 84 SkScalar sigmaY = buffer.readScalar(); in CreateProc() 85 SkColor color = buffer.readColor(); in CreateProc() 90 bool shadowOnly = SkToBool(buffer.read32LE(1)); in CreateProc() 95 void SkDropShadowImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten() 96 this->INHERITED::flatten(buffer); in flatten() 97 buffer in flatten() [all...] |
| /third_party/skia/third_party/externals/libjpeg-turbo/ |
| H A D | jdpostct.c | 27 /* Private buffer controller object */ 32 /* Color quantization source buffer: this holds output data from 34 * For two-pass color quantization, we need a full-image buffer; 35 * for one-pass operation, a strip buffer is sufficient. 38 JSAMPARRAY buffer; /* strip buffer, or current strip of virtual */ member 39 JDIMENSION strip_height; /* buffer size in rows */ 90 * allocate a strip buffer. Use the virtual-array buffer as workspace. in start_pass_dpost() 92 if (post->buffer in start_pass_dpost() [all...] |
| /third_party/skia/third_party/externals/icu/source/io/unicode/ |
| H A D | ustdio.h | 54 and make sure that a character that is contained across buffer boundaries 70 internal conversion buffer. For example, read the buffer size # of 72 at the end of the last buffer. 77 order to prevent buffer overruns. (e.g. %256.256d). 83 better testing. This prevents buffer overflows. 787 * @param buffer The Unicode String to which to write. 790 * @return The number of Unicode code units written to <TT>buffer</TT>. This 795 u_sprintf(UChar *buffer, 802 * units of data are stored in <TT>buffer</T [all...] |
| /third_party/protobuf/php/src/Google/Protobuf/Internal/ |
| H A D | CodedInputStream.php | 40 private $buffer; variable 55 public function __construct($buffer) 58 $end = strlen($buffer); 59 $this->buffer = $buffer; variable 90 return substr($this->buffer, $start, $end - $start); 98 // The limit position is in the current buffer. We must adjust the 99 // buffer size accordingly. 114 * Read uint32 into $var. Advance buffer with consumed bytes. If the 144 * Read Uint64 into $var. Advance buffer wit 303 $buffer = ""; global() variable 305 $buffer = substr($this->buffer, $this->current, $size); global() variable [all...] |
| /third_party/elfutils/libdwfl/ |
| H A D | gzip.c | 84 void *buffer; member 94 char *b = realloc (state->buffer, more); in bigger_buffer() 96 b = realloc (state->buffer, more -= 1024); in bigger_buffer() 99 state->buffer = b; in bigger_buffer() 107 state->buffer = in smaller_buffer() 108 realloc (state->buffer, end) ?: end == 0 ? NULL : state->buffer; in smaller_buffer() 122 free (state->buffer); in fail() 190 .buffer = NULL, in unzip() 264 ptrdiff_t pos = (void *) next_out - state.buffer; in unzip() [all...] |
| /third_party/littlefs/bd/ |
| H A D | lfs_testbd.c | 23 ".buffer=%p, .wear_buffer=%p})", in lfs_testbd_createcfg() 30 bdcfg->buffer, bdcfg->wear_buffer); in lfs_testbd_createcfg() 63 .buffer = bd->cfg->buffer, in lfs_testbd_createcfg() 108 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_testbd_rawread() 111 return lfs_filebd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread() 113 return lfs_rambd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread() 118 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_testbd_rawprog() 121 return lfs_filebd_prog(cfg, block, off, buffer, size); in lfs_testbd_rawprog() 123 return lfs_rambd_prog(cfg, block, off, buffer, siz in lfs_testbd_rawprog() 107 lfs_testbd_rawread(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size) lfs_testbd_rawread() argument 117 lfs_testbd_rawprog(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size) lfs_testbd_rawprog() argument 147 lfs_testbd_read(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size) lfs_testbd_read() argument 172 lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size) lfs_testbd_prog() argument [all...] |
| /third_party/skia/third_party/externals/dawn/src/dawn_wire/client/ |
| H A D | Buffer.cpp | 49 // Create the read handle on buffer creation. in Create() 54 "Failed to create buffer mapping"); in Create() 62 // Create the write handle on buffer creation. in Create() 67 "Failed to create buffer mapping"); in Create() 74 // Create the buffer and send the creation command. in Create() 78 Buffer* buffer = bufferObjectAndSerial->object.get(); in Create() local 79 buffer->mDevice = device; in Create() 80 buffer->mDeviceIsAlive = device->GetAliveWeakPtr(); in Create() 81 buffer->mSize = descriptor->size; in Create() 82 buffer in Create() [all...] |
| /third_party/skia/third_party/externals/freetype/src/psaux/ |
| H A D | psconv.c | 371 FT_Byte* buffer, 385 buffer[r++] = *p; 438 buffer[r++] = b; 444 buffer[r++] = b; 453 buffer[r++] = b; 466 FT_Byte* buffer, in FT_LOCAL_DEF() 506 buffer[w++] = (FT_Byte)pad; in FT_LOCAL_DEF() 512 buffer[w++] = (FT_Byte)( pad << 4 ); in FT_LOCAL_DEF() 538 *buffer = (FT_Byte)(*buffer in FT_LOCAL_DEF() [all...] |
| /third_party/libsnd/programs/ |
| H A D | sndfile-salvage.c | 233 { char buffer [8192], *cptr ; in find_data_offset() local 261 if ((rlen = read (fd, buffer, sizeof (buffer))) < 0) in find_data_offset() 266 cptr = memchr (buffer, target [0], rlen - slen) ; in find_data_offset() 268 offset = cptr - buffer ; in find_data_offset() 279 { static char * buffer ; in copy_data() local 284 buffer = malloc (bufferlen) ; in copy_data() 286 while (NOT (done) && (readlen = read (fd, buffer, bufferlen)) >= 0) in copy_data() 292 if ((count = sf_write_raw (sndfile, buffer, readlen)) != readlen) in copy_data() 298 free (buffer) ; in copy_data() [all...] |
| /third_party/libuv/test/ |
| H A D | test-poll-oob.c | 69 char buffer[5]; in poll_cb() local 74 memset(buffer, 0, 5); in poll_cb() 78 n = recv(client_fd, &buffer, 5, MSG_OOB); in poll_cb() 90 n = recv(client_fd, &buffer, 5, 0); in poll_cb() 94 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb() 100 ASSERT_OK(strncmp(buffer, "hello", n)); in poll_cb() 104 n = recv(server_fd, &buffer, 5, 0); in poll_cb() 108 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb() 118 n = recv(server_fd, &buffer, 3, 0); in poll_cb() 122 ASSERT_OK(strncmp(buffer, "fo in poll_cb() [all...] |
| /third_party/libcoap/include/oscore/ |
| H A D | oscore_cose.h | 170 const char *cose_get_curve_name(cose_curve_t id, char *buffer, size_t buflen); 173 const char *cose_get_alg_name(cose_alg_t id, char *buffer, size_t buflen); 176 const char *cose_get_hkdf_alg_name(cose_hkdf_alg_t id, char *buffer, 214 size_t cose_encrypt0_encode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size); 217 int cose_encrypt0_decode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size); 224 void cose_encrypt0_set_plaintext(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size); 227 uint8_t *buffer, 231 int cose_encrypt0_get_plaintext(cose_encrypt0_t *ptr, uint8_t **buffer); 241 size_t cose_encrypt0_get_key_id(cose_encrypt0_t *ptr, const uint8_t **buffer); 250 const uint8_t **buffer); [all...] |
| /third_party/node/test/fixtures/wpt/wasm/jsapi/module/ |
| H A D | customSections.any.js | 4 function assert_ArrayBuffer(buffer, expected) { 5 assert_equals(Object.getPrototypeOf(buffer), ArrayBuffer.prototype, "Prototype"); 6 assert_true(Object.isExtensible(buffer), "isExtensible"); 7 assert_array_equals(new Uint8Array(buffer), expected); 88 const buffer = builder.toBuffer() 89 const module = new WebAssembly.Module(buffer); 112 const buffer = builder.toBuffer(); 113 const module = new WebAssembly.Module(buffer); 127 const buffer = builder.toBuffer(); 128 const module = new WebAssembly.Module(buffer); [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-fs-promises-file-handle-read.js | 16 async function read(fileHandle, buffer, offset, length, position, options) { 18 fileHandle.read({ buffer, offset, length, position }) : 19 fileHandle.read(buffer, offset, length, position); 24 const buffer = Buffer.from(data, 'utf8'); 30 fs.writeSync(fd, buffer, 0, buffer.length); 38 assert.deepStrictEqual(buffer, readAsyncHandle.buffer); 45 assert.deepStrictEqual(buffer, streamData); 47 assert.deepStrictEqual(streamData, readAsyncHandle.buffer); [all...] |
| /third_party/libdrm/tegra/ |
| H A D | pushbuf.c | 54 * drm_tegra_pushbuf_begin() - prepare push buffer for a series of pushes 55 * @pushbuf: push buffer 129 struct drm_tegra_submit_buf *buffers, *buffer; in drm_tegra_pushbuf_relocate() local 133 size = (job->num_buffers + 1) * sizeof(*buffer); in drm_tegra_pushbuf_relocate() 139 buffer = &buffers[job->num_buffers]; in drm_tegra_pushbuf_relocate() 141 memset(buffer, 0, sizeof(*buffer)); in drm_tegra_pushbuf_relocate() 142 buffer->mapping = target->id; in drm_tegra_pushbuf_relocate() 143 buffer->flags = flags; in drm_tegra_pushbuf_relocate() 144 buffer in drm_tegra_pushbuf_relocate() [all...] |
| /third_party/mesa3d/src/gallium/drivers/lima/ |
| H A D | lima_disk_cache.c | 110 void *buffer = disk_cache_get(cache, cache_key, &size); in lima_vs_disk_cache_retrieve() local 113 fprintf(stderr, "%s\n", buffer ? "found" : "missing"); in lima_vs_disk_cache_retrieve() 115 if (!buffer) in lima_vs_disk_cache_retrieve() 123 blob_reader_init(&blob, buffer, size); in lima_vs_disk_cache_retrieve() 135 free(buffer); in lima_vs_disk_cache_retrieve() 162 void *buffer = disk_cache_get(cache, cache_key, &size); in lima_fs_disk_cache_retrieve() local 165 fprintf(stderr, "%s\n", buffer ? "found" : "missing"); in lima_fs_disk_cache_retrieve() 167 if (!buffer) in lima_fs_disk_cache_retrieve() 175 blob_reader_init(&blob, buffer, size); in lima_fs_disk_cache_retrieve() 183 free(buffer); in lima_fs_disk_cache_retrieve() [all...] |
| /third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/ |
| H A D | Encoder.java | 21 private ByteBuffer buffer; field in Encoder 67 * @param inputBufferSize read buffer size 72 throw new IllegalArgumentException("buffer size must be positive"); in Encoder() 96 while (buffer != null) { in pushOutput() 97 if (buffer.hasRemaining()) { in pushOutput() 98 destination.write(buffer); in pushOutput() 100 if (!buffer.hasRemaining()) { in pushOutput() 101 buffer = null; in pushOutput() 126 buffer = encoder.pull(); in encode() 157 * Encodes the given data buffer [all...] |
| /third_party/skia/third_party/externals/dawn/src/dawn_native/ |
| H A D | ProgrammableEncoder.cpp | 136 // BGL creation sorts bindings such that the dynamic buffer bindings are first. in ValidateSetBindGroup() 139 ASSERT(bindingInfo.buffer.hasDynamicOffset); in ValidateSetBindGroup() 142 switch (bindingInfo.buffer.type) { in ValidateSetBindGroup() 162 // <= buffer size. in ValidateSetBindGroup() 163 ASSERT(bufferBinding.buffer->GetSize() >= bufferBinding.size); in ValidateSetBindGroup() 164 ASSERT(bufferBinding.buffer->GetSize() - bufferBinding.size >= bufferBinding.offset); in ValidateSetBindGroup() 167 bufferBinding.buffer->GetSize() - bufferBinding.offset - bufferBinding.size)) { in ValidateSetBindGroup() 169 (bufferBinding.buffer->GetSize() - bufferBinding.offset) == bufferBinding.size, in ValidateSetBindGroup() 171 "range of (offset: %u, size: %u). The binding goes to the end of the buffer " in ValidateSetBindGroup() 174 static_cast<uint32_t>(i), dynamicOffsets[i], bufferBinding.buffer, in ValidateSetBindGroup() [all...] |
| /third_party/skia/third_party/externals/harfbuzz/util/ |
| H A D | shape-format.hh | 37 void serialize (hb_buffer_t *buffer, 44 void serialize_buffer_of_text (hb_buffer_t *buffer, 54 void serialize_buffer_of_glyphs (hb_buffer_t *buffer, 100 shape_format_options_t::serialize (hb_buffer_t *buffer, in serialize() argument 106 unsigned int num_glyphs = hb_buffer_get_length (buffer); in serialize() 113 start += hb_buffer_serialize (buffer, start, num_glyphs, in serialize() 130 shape_format_options_t::serialize_buffer_of_text (hb_buffer_t *buffer, in serialize_buffer_of_text() argument 149 serialize (buffer, font, HB_BUFFER_SERIALIZE_FORMAT_TEXT, HB_BUFFER_SERIALIZE_FLAG_DEFAULT, gs); in serialize_buffer_of_text() 164 shape_format_options_t::serialize_buffer_of_glyphs (hb_buffer_t *buffer, in serialize_buffer_of_glyphs() argument 174 serialize (buffer, fon in serialize_buffer_of_glyphs() [all...] |
| /third_party/skia/third_party/externals/dng_sdk/source/ |
| H A D | dng_image.h | 76 dng_tile_buffer (const dng_tile_buffer &buffer); 78 dng_tile_buffer & operator= (const dng_tile_buffer &buffer); 250 /// Get a pixel buffer of data on image with proper edge padding. 251 /// \param buffer Receives resulting pixel buffer. 258 void Get (dng_pixel_buffer &buffer, 263 /// Put a pixel buffer into image. 264 /// \param buffer Pixel buffer to copy from. 266 void Put (const dng_pixel_buffer &buffer); [all...] |
| /third_party/rust/crates/clap/clap_complete/src/shells/ |
| H A D | fish.rs | 23 let mut buffer = String::new(); in generate() variables 24 gen_fish_inner(bin_name, &[], cmd, &mut buffer); in generate() 25 w!(buf, buffer.as_bytes()); in generate() 43 buffer: &mut String, in gen_fish_inner() 107 buffer.push_str(template.as_str()); in gen_fish_inner() 108 buffer.push('\n'); in gen_fish_inner() 131 buffer.push_str(template.as_str()); in gen_fish_inner() 132 buffer.push('\n'); in gen_fish_inner() 145 buffer.push_str(template.as_str()); in gen_fish_inner() 146 buffer in gen_fish_inner() [all...] |
| /third_party/skia/third_party/externals/libjpeg-turbo/simd/i386/ |
| H A D | jchuff-sse2.asm | 24 .next_output_byte: resp 1 ; => next byte to write in buffer 25 .free_in_buffer: resp 1 ; # of byte spaces remaining in buffer 26 .cur.put_buffer.simd resq 1 ; current bit accumulation buffer 117 ; Fill the bit buffer to capacity with the leading bits from code, then output 118 ; the bit buffer and put the remaining bits from code into the bit buffer. 121 ; code - contains the bits to shift into the bit buffer (LSB-aligned) 162 mov dword [buffer], %%temp ; *(uint32_t)buffer = temp; 170 mov dword [buffer [all...] |