Home
last modified time | relevance | path

Searched refs:suggested_size (Results 1 – 25 of 60) sorted by relevance

123

/third_party/node/src/
Dstream_pipe.h50 uv_buf_t OnStreamAlloc(size_t suggested_size) override;
57 uv_buf_t OnStreamAlloc(size_t suggested_size) override;
61 void OnStreamWantsWrite(size_t suggested_size) override;
Dstream_base.h131 virtual uv_buf_t OnStreamAlloc(size_t suggested_size) = 0;
159 virtual void OnStreamWantsWrite(size_t suggested_size) {} in OnStreamWantsWrite() argument
197 uv_buf_t OnStreamAlloc(size_t suggested_size) override;
206 uv_buf_t OnStreamAlloc(size_t suggested_size) override;
276 inline uv_buf_t EmitAlloc(size_t suggested_size);
287 inline void EmitWantsWrite(size_t suggested_size);
Dstream_pipe.cc117 uv_buf_t StreamPipe::ReadableListener::OnStreamAlloc(size_t suggested_size) { in OnStreamAlloc() argument
119 size_t size = std::min(suggested_size, pipe->wanted_data_); in OnStreamAlloc()
227 void StreamPipe::WritableListener::OnStreamWantsWrite(size_t suggested_size) { in OnStreamWantsWrite() argument
229 pipe->wanted_data_ = suggested_size; in OnStreamWantsWrite()
239 uv_buf_t StreamPipe::WritableListener::OnStreamAlloc(size_t suggested_size) { in OnStreamAlloc() argument
241 return previous_listener_->OnStreamAlloc(suggested_size); in OnStreamAlloc()
Dspawn_sync.h46 inline void OnAlloc(size_t suggested_size, uv_buf_t* buf) const;
100 inline void OnAlloc(size_t suggested_size, uv_buf_t* buf);
109 size_t suggested_size,
Dstream_base-inl.h95 uv_buf_t StreamResource::EmitAlloc(size_t suggested_size) { in EmitAlloc() argument
97 return listener_->OnStreamAlloc(suggested_size); in EmitAlloc()
117 void StreamResource::EmitWantsWrite(size_t suggested_size) { in EmitWantsWrite() argument
119 listener_->OnStreamWantsWrite(suggested_size); in EmitWantsWrite()
Dudp_wrap.h45 virtual uv_buf_t OnAlloc(size_t suggested_size) = 0;
155 uv_buf_t OnAlloc(size_t suggested_size) override;
204 size_t suggested_size,
Dstream_wrap.cc190 size_t suggested_size, in ReadStart()
192 static_cast<LibuvStreamWrap*>(handle->data)->OnUvAlloc(suggested_size, buf); in ReadStart()
204 void LibuvStreamWrap::OnUvAlloc(size_t suggested_size, uv_buf_t* buf) { in OnUvAlloc() argument
208 *buf = EmitAlloc(suggested_size); in OnUvAlloc()
/third_party/libuv/docs/code/multi-echo-server/
Dworker.c22 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
23 buf->base = malloc(suggested_size); in alloc_buffer()
24 buf->len = suggested_size; in alloc_buffer()
Dmain.c26 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
27 buf->base = malloc(suggested_size); in alloc_buffer()
28 buf->len = suggested_size; in alloc_buffer()
/third_party/libuv/docs/code/pipe-echo-server/
Dmain.c25 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
26 buf->base = malloc(suggested_size); in alloc_buffer()
27 buf->len = suggested_size; in alloc_buffer()
/third_party/libuv/docs/code/dns/
Dmain.c8 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
9 buf->base = malloc(suggested_size); in alloc_buffer()
10 buf->len = suggested_size; in alloc_buffer()
/third_party/libuv/docs/code/tcp-echo-server/
Dmain.c23 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
24 buf->base = (char*) malloc(suggested_size); in alloc_buffer()
25 buf->len = suggested_size; in alloc_buffer()
/third_party/libuv/docs/code/uvtee/
Dmain.c19 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
20 *buf = uv_buf_init((char*) malloc(suggested_size), suggested_size); in alloc_buffer()
/third_party/libuv/docs/code/udp-dhcp/
Dmain.c12 void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) { in alloc_buffer() argument
13 buf->base = malloc(suggested_size); in alloc_buffer()
14 buf->len = suggested_size; in alloc_buffer()
/third_party/libuv/test/
Dtest-ipc-heavy-traffic-deadlock-bug.c82 size_t suggested_size, in alloc_cb() argument
84 buf->base = malloc(suggested_size); in alloc_cb()
85 buf->len = (int) suggested_size; in alloc_cb()
Dtest-stdio-over-pipes.c77 size_t suggested_size, in on_alloc() argument
199 size_t suggested_size, in on_read_alloc() argument
201 buf->base = malloc(suggested_size); in on_read_alloc()
202 buf->len = suggested_size; in on_read_alloc()
Dtest-udp-try-send.c41 size_t suggested_size, in alloc_cb() argument
45 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
Decho-server.c154 size_t suggested_size, in echo_alloc() argument
156 buf->base = malloc(suggested_size); in echo_alloc()
157 buf->len = suggested_size; in echo_alloc()
161 size_t suggested_size, in slab_alloc() argument
Dtest-udp-send-immediate.c41 size_t suggested_size, in alloc_cb() argument
45 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
Dblackhole-server.c36 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf);
64 size_t suggested_size, in alloc_cb() argument
Dtest-tcp-write-to-half-open-connection.c33 static void alloc_cb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf);
69 size_t suggested_size, in alloc_cb() argument
Dtest-udp-multicast-join.c46 size_t suggested_size, in alloc_cb() argument
50 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
Dtest-udp-alloc-cb-fail.c45 size_t suggested_size, in sv_alloc_cb() argument
55 size_t suggested_size, in cl_alloc_cb() argument
Dtest-udp-multicast-join6.c58 size_t suggested_size, in alloc_cb() argument
62 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
Dtest-udp-send-and-recv.c45 size_t suggested_size, in alloc_cb() argument
49 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()

123