Home
last modified time | relevance | path

Searched refs:write_ptr (Results 1 – 25 of 31) sorted by relevance

12

/external/speex/libspeexdsp/
Dbuffer.c47 int write_ptr; member
57 st->write_ptr = 0; in speex_buffer_init()
78 end = st->write_ptr + len; in speex_buffer_write()
82 SPEEX_COPY(st->data + st->write_ptr, data, end1 - st->write_ptr); in speex_buffer_write()
86 SPEEX_COPY(st->data, data+end1 - st->write_ptr, end); in speex_buffer_write()
92 st->read_ptr = st->write_ptr; in speex_buffer_write()
94 st->write_ptr += len; in speex_buffer_write()
95 if (st->write_ptr > st->size) in speex_buffer_write()
96 st->write_ptr -= st->size; in speex_buffer_write()
110 end = st->write_ptr + len; in speex_buffer_writezeros()
[all …]
/external/libpng/
Dpngtest.c754 write_sTER_chunk(png_structp write_ptr) in write_sTER_chunk() argument
761 png_write_chunk(write_ptr, sTER, &user_chunk_data.sTER_mode, 1); in write_sTER_chunk()
765 write_vpAg_chunk(png_structp write_ptr) in write_vpAg_chunk() argument
780 png_write_chunk(write_ptr, vpAg, vpag_chunk_data, 9); in write_vpAg_chunk()
784 write_chunks(png_structp write_ptr, int location) in write_chunks() argument
797 write_sTER_chunk(write_ptr); in write_chunks()
800 write_vpAg_chunk(write_ptr); in write_chunks()
861 png_structp write_ptr; in test_one_file() local
868 png_structp write_ptr = NULL; in test_one_file() local
909 write_ptr = in test_one_file()
[all …]
Dexample.c886 png_set_text(write_ptr, write_info_ptr, text_ptr, 3);
/external/perfetto/include/perfetto/public/
Dstream_writer.h29 return PERFETTO_STATIC_CAST(size_t, w->end - w->write_ptr); in PerfettoStreamWriterAvailableBytes()
40 memcpy(w->write_ptr, src, size); in PerfettoStreamWriterAppendBytesUnsafe()
41 w->write_ptr += size; in PerfettoStreamWriterAppendBytesUnsafe()
63 *w->write_ptr++ = value; in PerfettoStreamWriterAppendByte()
74 uint8_t* ret = w->write_ptr; in PerfettoStreamWriterReserveBytesUnsafe()
76 w->write_ptr += size; in PerfettoStreamWriterReserveBytesUnsafe()
93 return w->write_ptr - size; in PerfettoStreamWriterReserveBytes()
100 PERFETTO_STATIC_CAST(size_t, w->write_ptr - w->begin); in PerfettoStreamWriterGetWrittenSize()
Ddata_source.h89 uint8_t* write_ptr = data_source_desc; in PerfettoDsRegister() local
91 write_ptr = PerfettoPbWriteVarInt( in PerfettoDsRegister()
93 write_ptr); in PerfettoDsRegister()
94 write_ptr = PerfettoPbWriteVarInt(data_source_name_len, write_ptr); in PerfettoDsRegister()
95 memcpy(write_ptr, data_source_name, data_source_name_len); in PerfettoDsRegister()
96 write_ptr += data_source_name_len; in PerfettoDsRegister()
126 PERFETTO_STATIC_CAST(size_t, write_ptr - data_source_desc)); in PerfettoDsRegister()
/external/perfetto/include/perfetto/protozero/
Dscattered_stream_writer.h132 uint8_t* write_ptr() const { return write_ptr_; } in write_ptr() function
134 void set_write_ptr(uint8_t* write_ptr) { in set_write_ptr() argument
135 assert(cur_range_.begin <= write_ptr && write_ptr <= cur_range_.end); in set_write_ptr()
136 write_ptr_ = write_ptr; in set_write_ptr()
Dstatic_buffer.h77 return static_cast<size_t>(writer_.write_ptr() - delegate_.range_.begin); in Finalize()
/external/ltp/testcases/kernel/mem/thp/
Dthp04.c36 static int *write_ptr, *read_ptr; variable
93 write_ptr = (int *)(write_thp + thp_size - sizeof(int)); in setup()
109 memcpy(&c, write_ptr, sizeof(c)); in thread_run()
110 SAFE_LSEEK(readfd, (off_t)write_ptr, SEEK_SET); in thread_run()
129 SAFE_LSEEK(writefd, (off_t)write_ptr, SEEK_SET); in run()
/external/perfetto/src/shared_lib/
Dstream_writer.cc28 sw->set_write_ptr(w->write_ptr); in PerfettoStreamWriterUpdateWritePtr()
33 sw->set_write_ptr(w->write_ptr); in PerfettoStreamWriterNewChunk()
52 sw->set_write_ptr(w->write_ptr); in PerfettoStreamWriterAppendBytesSlowpath()
60 sw->set_write_ptr(w->write_ptr); in PerfettoStreamWriterReserveBytesSlowpath()
Dstream_writer.h31 w->write_ptr = sw.write_ptr(); in UpdateStreamWriter()
Dheap_buffer.cc39 sw->set_write_ptr(w->write_ptr); in PerfettoHeapBufferCopyInto()
Ddata_source.cc444 sw->set_write_ptr(w->write_ptr); in PerfettoDsTracerImplPacketEnd()
/external/cronet/base/memory/
Dshared_memory_mapping_unittest.cc47 uint32_t* write_ptr = write_mapping_.GetMemoryAs<uint32_t>(); in TEST_F() local
48 EXPECT_NE(nullptr, write_ptr); in TEST_F()
53 *write_ptr = 0u; in TEST_F()
56 *write_ptr = 0x12345678u; in TEST_F()
/external/libwebm/testing/
Dvideo_frame_tests.cc42 uint8_t* write_ptr = reinterpret_cast<uint8_t*>(frame.buffer().data.get()); in TEST() local
43 *write_ptr = 0xFF; in TEST()
/external/libchrome/mojo/core/
Dcore_unittest.cc349 void* write_ptr = nullptr; in TEST_F() local
352 core()->BeginWriteData(ph, nullptr, &write_ptr, &num_bytes)); in TEST_F()
363 static_cast<char*>(write_ptr)[0] = 'C'; in TEST_F()
364 static_cast<char*>(write_ptr)[1] = 'D'; in TEST_F()
365 static_cast<char*>(write_ptr)[2] = 'E'; in TEST_F()
Ddata_pipe_unittest.cc762 void* write_ptr = nullptr; in TEST_F() local
763 ASSERT_EQ(MOJO_RESULT_OK, BeginWriteData(&write_ptr, &num_bytes)); in TEST_F()
764 EXPECT_TRUE(write_ptr); in TEST_F()
782 static_cast<int32_t*>(write_ptr)[0] = 123; in TEST_F()
806 write_ptr = nullptr; in TEST_F()
807 ASSERT_EQ(MOJO_RESULT_OK, BeginWriteData(&write_ptr, &num_bytes)); in TEST_F()
808 EXPECT_TRUE(write_ptr); in TEST_F()
1432 void* write_ptr = nullptr; in TEST_F() local
1433 ASSERT_EQ(MOJO_RESULT_OK, BeginWriteData(&write_ptr, &num_bytes)); in TEST_F()
1451 write_ptr = nullptr; in TEST_F()
[all …]
/external/perfetto/src/tracing/core/
Dtrace_writer_impl.cc145 cur_fragment_start_ = protobuf_stream_writer_.write_ptr(); in NewTracePacket()
297 uint8_t* const wptr = protobuf_stream_writer_.write_ptr(); in GetNewBuffer()
375 uint8_t* const wptr = protobuf_stream_writer_.write_ptr(); in FinishTracePacket()
/external/zstd/doc/educational_decoder/
Dzstd_decompress.c613 u8 *const write_ptr = IO_get_write_ptr(out, block_len); in decompress_data() local
616 memcpy(write_ptr, read_ptr, block_len); in decompress_data()
626 u8 *const write_ptr = IO_get_write_ptr(out, block_len); in decompress_data() local
629 memset(write_ptr, read_ptr[0], block_len); in decompress_data()
1275 u8 *const write_ptr = IO_get_write_ptr(out, literal_length); in copy_literals() local
1279 memcpy(write_ptr, read_ptr, literal_length); in copy_literals()
1335 u8 *write_ptr = IO_get_write_ptr(out, match_length); in execute_match_copy() local
1352 memcpy(write_ptr, ctx->dict_content + dict_offset, dict_copy); in execute_match_copy()
1353 write_ptr += dict_copy; in execute_match_copy()
1365 *write_ptr = *(write_ptr - offset); in execute_match_copy()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/http/client/
Dhttp_client_filter.cc326 char* write_ptr = in update_path_for_get() local
330 memcpy(write_ptr, original_path, GRPC_SLICE_LENGTH(path_slice)); in update_path_for_get()
331 write_ptr += GRPC_SLICE_LENGTH(path_slice); in update_path_for_get()
332 *write_ptr++ = '?'; in update_path_for_get()
335 grpc_base64_encode_core(write_ptr, payload_bytes, in update_path_for_get()
/external/grpc-grpc/src/core/ext/filters/http/client/
Dhttp_client_filter.cc269 char* write_ptr = in update_path_for_get() local
273 memcpy(write_ptr, original_path, GRPC_SLICE_LENGTH(path_slice)); in update_path_for_get()
274 write_ptr += GRPC_SLICE_LENGTH(path_slice); in update_path_for_get()
275 *write_ptr++ = '?'; in update_path_for_get()
278 grpc_base64_encode_core(write_ptr, payload_bytes, in update_path_for_get()
/external/libpng/contrib/libtests/
Dtimepng.c83 FILE *write_ptr, FILE *read_ptr) in read_by_row() argument
91 if (write_ptr != NULL) in read_by_row()
95 io_copy.output = write_ptr; in read_by_row()
/external/perfetto/include/perfetto/public/abi/
Dstream_writer_abi.h55 uint8_t* write_ptr; member
/external/perfetto/src/protozero/
Dscattered_stream_writer_unittest.cc103 EXPECT_EQ(other_buffer, ssw.write_ptr()); in TEST()
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp1182 cl_uchar* write_ptr = (cl_uchar*)clEnqueueMapBuffer( in l_write_read_for_type() local
1226 clEnqueueUnmapMemObject(queue, write_mem, write_ptr, 0, 0, 0); in l_write_read_for_type()
1396 cl_uchar* write_ptr = (cl_uchar*)clEnqueueMapBuffer( in l_init_write_read_for_type() local
1473 clEnqueueUnmapMemObject(queue, write_mem, write_ptr, 0, 0, 0); in l_init_write_read_for_type()
/external/fmtlib/test/
Dformat-impl-test.cc435 fmt::detail::write_ptr<char>( in TEST()

12