/external/python/cpython2/Doc/c-api/ |
D | objbuffer.rst | 16 … c:function:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len) 21 and *buffer_len* to the buffer length. Returns ``-1`` and sets a 27 This function used an :c:type:`int *` type for *buffer_len*. This might 31 … c:function:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len) 36 and *buffer_len* to the buffer length. Returns ``-1`` and sets a 42 This function used an :c:type:`int *` type for *buffer_len*. This might 54 .. c:function:: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len) 58 returns ``0``, sets *buffer* to the memory location and *buffer_len* to the 64 This function used an :c:type:`int *` type for *buffer_len*. This might
|
/external/python/cpython3/Doc/c-api/ |
D | objbuffer.rst | 21 … c:function:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len) 26 and *buffer_len* to the buffer length. Returns ``-1`` and sets a 30 … c:function:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len) 35 and *buffer_len* to the buffer length. Returns ``-1`` and sets a 49 .. c:function:: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len) 53 returns ``0``, sets *buffer* to the memory location and *buffer_len* to the
|
/external/webrtc/webrtc/base/ |
D | stream.cc | 60 StreamResult StreamInterface::ReadAll(void* buffer, size_t buffer_len, in ReadAll() argument 64 while (total_read < buffer_len) { in ReadAll() 66 buffer_len - total_read, ¤t_read, error); in ReadAll() 166 size_t buffer_len, in Read() argument 169 return stream_->Read(buffer, buffer_len, read, error); in Read() 266 StreamResult StreamTap::Read(void* buffer, size_t buffer_len, in Read() argument 272 StreamResult res = StreamAdapterInterface::Read(buffer, buffer_len, in Read() 308 StreamResult NullStream::Read(void* buffer, size_t buffer_len, in Read() argument 389 StreamResult FileStream::Read(void* buffer, size_t buffer_len, in Read() argument 393 size_t result = fread(buffer, 1, buffer_len, file_); in Read() [all …]
|
D | stream.h | 83 virtual StreamResult Read(void* buffer, size_t buffer_len, 215 StreamResult ReadAll(void* buffer, size_t buffer_len, 250 size_t buffer_len, 328 size_t buffer_len, 355 size_t buffer_len, 386 size_t buffer_len, 572 size_t buffer_len, 604 size_t buffer_len, 696 char* buffer, size_t buffer_len,
|
D | socketstream.cc | 60 StreamResult SocketStream::Read(void* buffer, size_t buffer_len, in Read() argument 63 int result = socket_->Recv(buffer, buffer_len); in Read() 71 if ((result > 0) || (buffer_len == 0)) { in Read()
|
D | transformadapter.cc | 34 TransformAdapter::Read(void * buffer, size_t buffer_len, in Read() argument 65 size_t out_len = buffer_len; in Read()
|
D | fileutils_mock.h | 31 virtual StreamResult Read(void* buffer, size_t buffer_len, in Read() argument 33 return string_stream_.Read(buffer, buffer_len, read, error); in Read()
|
/external/autotest/client/deps/glbench/src/ |
D | testbase.cc | 195 const int buffer_len = 64; in FillRateTestBlendDepth() local 196 char buffer[buffer_len]; in FillRateTestBlendDepth() 200 snprintf(buffer, buffer_len, "%s_blended", name); in FillRateTestBlendDepth() 208 snprintf(buffer, buffer_len, "%s_depth_neq", name); in FillRateTestBlendDepth() 215 snprintf(buffer, buffer_len, "%s_depth_never", name); in FillRateTestBlendDepth()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_buffer_objects.c | 509 if (intel->upload.buffer_len) { in intel_upload_finish() 512 intel->upload.buffer_len, in intel_upload_finish() 514 intel->upload.buffer_len = 0; in intel_upload_finish() 550 if (intel->upload.buffer_len && in intel_upload_data() 551 intel->upload.buffer_len + delta + size > sizeof(intel->upload.buffer)) in intel_upload_data() 555 intel->upload.buffer_len, in intel_upload_data() 557 intel->upload.buffer_len = 0; in intel_upload_data() 562 if (intel->upload.buffer_len == 0) in intel_upload_data() 565 intel->upload.buffer_len += delta; in intel_upload_data() 567 memcpy(intel->upload.buffer + intel->upload.buffer_len, ptr, size); in intel_upload_data() [all …]
|
/external/curl/docs/examples/ |
D | fopen.c | 75 size_t buffer_len; /* currently allocated buffers length */ member 105 rembuff = url->buffer_len - url->buffer_pos; /* remaining space in buffer */ in write_callback() 109 newbuff = realloc(url->buffer, url->buffer_len + (size - rembuff)); in write_callback() 116 url->buffer_len += size - rembuff; in write_callback() 219 file->buffer_len = 0; in use_buffer() 439 file->buffer_len = 0; in url_rewind()
|
/external/openssh/ |
D | ssh-pkcs11-helper.c | 106 int mlen = buffer_len(m); in send_msg() 219 buf_len = buffer_len(&iqueue); in process() 251 if (buf_len < buffer_len(&iqueue)) { in process() 255 consumed = buf_len - buffer_len(&iqueue); in process() 321 olen = buffer_len(&oqueue); in main()
|
D | clientloop.c | 524 while (buffer_len(&stdin_buffer) > 0 && in client_make_packets_from_stdin_data() 526 len = buffer_len(&stdin_buffer); in client_make_packets_from_stdin_data() 535 if (stdin_eof && buffer_len(&stdin_buffer) == 0) { in client_make_packets_from_stdin_data() 628 if (buffer_len(&stdout_buffer) < buffer_high && in client_wait_until_can_do_something() 629 buffer_len(&stderr_buffer) < buffer_high && in client_wait_until_can_do_something() 640 if (buffer_len(&stdout_buffer) > 0) in client_wait_until_can_do_something() 642 if (buffer_len(&stderr_buffer) > 0) in client_wait_until_can_do_something() 724 if (buffer_len(bout) > 0) in client_suspend_self() 726 buffer_len(bout)); in client_suspend_self() 727 if (buffer_len(berr) > 0) in client_suspend_self() [all …]
|
D | channels.c | 576 buffer_len(&c->input) > packet_get_maxsize()) { in channel_not_very_much_buffered_data() 578 c->self, buffer_len(&c->input)); in channel_not_very_much_buffered_data() 582 if (buffer_len(&c->output) > packet_get_maxsize()) { in channel_not_very_much_buffered_data() 584 c->self, buffer_len(&c->output), in channel_not_very_much_buffered_data() 732 c->istate, buffer_len(&c->input), in channel_open_message() 733 c->ostate, buffer_len(&c->output), in channel_open_message() 901 if (buffer_len(&c->input) < packet_get_maxsize()) in channel_pre_open_13() 903 if (buffer_len(&c->output) > 0) in channel_pre_open_13() 914 buffer_len(&c->input) < limit && in channel_pre_open() 919 if (buffer_len(&c->output) > 0) { in channel_pre_open() [all …]
|
D | nchan.c | 156 if (buffer_len(&c->input)) { in chan_ibuf_empty() 220 if (buffer_len(&c->output)) { in chan_obuf_empty() 414 buffer_len(&c->output) == 0 && in chan_rcvd_ieof() 457 buffer_len(&c->extended) > 0) { in chan_is_dead() 459 c->self, c->efd, buffer_len(&c->extended)); in chan_is_dead()
|
D | ssh-pkcs11-client.c | 54 int mlen = buffer_len(m); in send_msg() 59 buffer_len(m)) != buffer_len(m)) in send_msg()
|
D | mux.c | 293 while (buffer_len(m) > 0) { in process_mux_master_hello() 348 while (buffer_len(m) > 0) { in process_mux_new_session() 654 buffer_put_string(&c->output, buffer_ptr(&out), buffer_len(&out)); in mux_confirm_remote_forward() 1075 buffer_put_string(&cc->output, buffer_ptr(&reply), buffer_len(&reply)); in mux_stdio_confirm() 1153 buffer_len(&out)); in mux_master_read_cb() 1173 __func__, c->self, type, buffer_len(&in)); in mux_master_read_cb() 1201 if (buffer_len(&out) != 0) { in mux_master_read_cb() 1203 buffer_len(&out)); in mux_master_read_cb() 1230 buffer_put_string(&mux_chan->output, buffer_ptr(&m), buffer_len(&m)); in mux_exit_message() 1251 buffer_put_string(&mux_chan->output, buffer_ptr(&m), buffer_len(&m)); in mux_tty_alloc_failed() [all …]
|
D | ttymodes.c | 337 packet_put_string(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes() 339 packet_put_raw(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes()
|
D | channels.h | 205 buffer_len(&c->extended) > 0)) 209 buffer_len(&c->extended) > 0))
|
/external/curl/tests/server/ |
D | sockfilt.c | 1034 ssize_t buffer_len; in juggle() local 1066 buffer_len = (ssize_t)strlen((char *)buffer); in juggle() 1067 msnprintf(data, sizeof(data), "PORT\n%04zx\n", buffer_len); in juggle() 1070 if(!write_stdout(buffer, buffer_len)) in juggle() 1086 buffer_len = (ssize_t)strtol((char *)buffer, NULL, 16); in juggle() 1087 if(buffer_len > (ssize_t)sizeof(buffer)) { in juggle() 1089 "(%zd bytes)", sizeof(buffer), buffer_len); in juggle() 1092 logmsg("> %zd bytes data, server => client", buffer_len); in juggle() 1094 if(!read_stdin(buffer, buffer_len)) in juggle() 1097 lograw(buffer, buffer_len); in juggle() [all …]
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 208 Py_ssize_t buffer_len; in multiprocessing_address_of_buffer() local 210 if (PyObject_AsWriteBuffer(obj, &buffer, &buffer_len) < 0) in multiprocessing_address_of_buffer() 214 PyLong_FromVoidPtr(buffer), buffer_len); in multiprocessing_address_of_buffer()
|
/external/libevent/ |
D | buffer.c | 130 0 : (ch)->buffer_len - ((ch)->misalign + (ch)->off)) 182 chain->buffer_len = to_alloc - EVBUFFER_CHAIN_SIZE; in evbuffer_chain_new() 219 chain->buffer_len, in evbuffer_chain_free() 933 tmp->buffer_len = chain->buffer_len; in APPEND_CHAIN_MULTICAST() 1394 } else if (chain->buffer_len - chain->misalign >= (size_t)size) { in evbuffer_pullup() 1759 remain = chain->buffer_len - (size_t)chain->misalign - chain->off; in evbuffer_add() 1786 to_alloc = chain->buffer_len; in evbuffer_add() 1852 chain->misalign = chain->buffer_len; in evbuffer_prepend() 1886 EVUTIL_ASSERT(datlen <= tmp->buffer_len); in evbuffer_prepend() 1887 tmp->misalign = tmp->buffer_len - datlen; in evbuffer_prepend() [all …]
|
/external/python/cpython2/Objects/ |
D | abstract.c | 247 Py_ssize_t *buffer_len) in PyObject_AsCharBuffer() argument 253 if (obj == NULL || buffer == NULL || buffer_len == NULL) { in PyObject_AsCharBuffer() 274 *buffer_len = len; in PyObject_AsCharBuffer() 293 Py_ssize_t *buffer_len) in PyObject_AsReadBuffer() argument 299 if (obj == NULL || buffer == NULL || buffer_len == NULL) { in PyObject_AsReadBuffer() 320 *buffer_len = len; in PyObject_AsReadBuffer() 326 Py_ssize_t *buffer_len) in PyObject_AsWriteBuffer() argument 332 if (obj == NULL || buffer == NULL || buffer_len == NULL) { in PyObject_AsWriteBuffer() 353 *buffer_len = len; in PyObject_AsWriteBuffer() 1614 Py_ssize_t buffer_len; local [all …]
|
/external/libchrome/ipc/ |
D | ipc_channel_nacl.cc | 329 int buffer_len, in ReadData() argument 336 while (!read_queue_.empty() && *bytes_read < buffer_len) { in ReadData() 338 size_t bytes_to_read = buffer_len - *bytes_read; in ReadData()
|
D | ipc_channel_reader_unittest.cc | 28 ReadState ReadData(char* buffer, int buffer_len, int* bytes_read) override { in ReadData() argument 32 size_t read_len = std::min(static_cast<size_t>(buffer_len), data_.size()); in ReadData()
|
/external/grpc-grpc/src/core/tsi/alts/frame_protector/ |
D | alts_frame_protector.cc | 219 size_t buffer_len = alts_get_output_bytes_read(impl->reader) + in ensure_buffer_size() local 221 unsigned char* buffer = static_cast<unsigned char*>(gpr_malloc(buffer_len)); in ensure_buffer_size() 224 impl->max_unprotected_frame_size = buffer_len; in ensure_buffer_size()
|