Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/content/test/net/
Durl_request_slow_download_job.cc140 int bytes_to_write = std::min(kFirstDownloadSize - bytes_already_sent_, in FillBufferHelper() local
142 for (int i = 0; i < bytes_to_write; ++i) { in FillBufferHelper()
145 *bytes_written = bytes_to_write; in FillBufferHelper()
146 bytes_already_sent_ += bytes_to_write; in FillBufferHelper()
154 int bytes_to_write = in FillBufferHelper() local
157 for (int i = 0; i < bytes_to_write; ++i) { in FillBufferHelper()
160 *bytes_written = bytes_to_write; in FillBufferHelper()
161 bytes_already_sent_ += bytes_to_write; in FillBufferHelper()
/external/chromium_org/net/tools/flip_server/
Dring_buffer.cc54 int bytes_to_write = size; in Write() local
56 if (bytes_available < bytes_to_write) { in Write()
57 bytes_to_write = bytes_available; in Write()
59 const char* end = bytes + bytes_to_write; in Write()
69 bytes_used_ += bytes_to_write; in Write()
70 return bytes_to_write; in Write()
/external/chromium/net/tools/flip_server/
Dring_buffer.cc77 int bytes_to_write = size; in Write() local
79 if (bytes_available < bytes_to_write) { in Write()
80 bytes_to_write = bytes_available; in Write()
82 const char* end = bytes + bytes_to_write; in Write()
92 bytes_used_ += bytes_to_write; in Write()
93 return bytes_to_write; in Write()
/external/chromium_org/content/child/npapi/
Dplugin_stream.cc197 int bytes_to_write = instance_->NPP_WriteReady(&stream_); in TryWriteToPlugin() local
198 if (bytes_to_write > bytes_remaining) in TryWriteToPlugin()
199 bytes_to_write = bytes_remaining; in TryWriteToPlugin()
201 if (bytes_to_write == 0) in TryWriteToPlugin()
205 &stream_, data_offset_, bytes_to_write, in TryWriteToPlugin()
218 bytes_consumed = std::min(bytes_consumed, bytes_to_write); in TryWriteToPlugin()
/external/chromium_org/base/files/
Dfile_util_proxy.cc163 WriteHelper(const char* buffer, int bytes_to_write) in WriteHelper() argument
164 : buffer_(new char[bytes_to_write]), in WriteHelper()
165 bytes_to_write_(bytes_to_write), in WriteHelper()
167 memcpy(buffer_.get(), buffer, bytes_to_write); in WriteHelper()
323 int bytes_to_write, in Write() argument
325 if (bytes_to_write <= 0 || buffer == NULL) { in Write()
328 WriteHelper* helper = new WriteHelper(buffer, bytes_to_write); in Write()
/external/chromium_org/mojo/system/
Draw_channel_posix.cc351 size_t bytes_to_write = in WriteFrontMessageNoLock() local
356 bytes_to_write)); in WriteFrontMessageNoLock()
359 PLOG(ERROR) << "write of size " << bytes_to_write; in WriteFrontMessageNoLock()
370 if (static_cast<size_t>(bytes_written) < bytes_to_write) { in WriteFrontMessageNoLock()
375 DCHECK_EQ(static_cast<size_t>(bytes_written), bytes_to_write); in WriteFrontMessageNoLock()
/external/zlib/src/contrib/iostream3/
Dzfstream.cc229 int bytes_to_write = this->pptr() - this->pbase(); in overflow() local
231 if (bytes_to_write > 0) in overflow()
237 if (gzwrite(file, this->pbase(), bytes_to_write) != bytes_to_write) in overflow()
240 this->pbump(-bytes_to_write); in overflow()
/external/chromium_org/sandbox/win/src/
Dservice_resolver_32.cc242 size_t bytes_to_write = sizeof(intercepted_code); in PerformPatch() local
256 bytes_to_write = kMinServiceSize; in PerformPatch()
261 bytes_to_write = offsetof(ServiceEntry, mov_edx); in PerformPatch()
283 bytes_to_write, &written)) in PerformPatch()
287 bytes_to_write)) in PerformPatch()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/
D_stream_base.py135 def _write(self, bytes_to_write): argument
141 self._request.connection.write(bytes_to_write)
/external/chromium_org/ppapi/c/private/
Dppb_tcp_socket_private.h150 int32_t bytes_to_write,
199 int32_t bytes_to_write,
232 int32_t bytes_to_write,
/external/chromium_org/ppapi/cpp/private/
Dtcp_socket_private.cc203 int32_t bytes_to_write, in Write() argument
207 pp_resource(), buffer, bytes_to_write, in Write()
212 pp_resource(), buffer, bytes_to_write, in Write()
217 pp_resource(), buffer, bytes_to_write, in Write()
/external/chromium_org/ppapi/cpp/
Dtcp_socket.cc127 int32_t bytes_to_write, in Write() argument
131 pp_resource(), buffer, bytes_to_write, in Write()
136 pp_resource(), buffer, bytes_to_write, in Write()
Dfile_io.cc134 int32_t bytes_to_write, in Write() argument
138 pp_resource(), offset, buffer, bytes_to_write, in Write()
142 pp_resource(), offset, buffer, bytes_to_write, in Write()
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Dfake_pepper_interface_html5fs.cc100 int32_t bytes_to_write) { in Write() argument
104 size_t new_size = offset + bytes_to_write; in Write()
108 memcpy(contents_.data() + offset, buffer, bytes_to_write); in Write()
110 return bytes_to_write; in Write()
113 int32_t FakeHtml5FsNode::Append(const char* buffer, int32_t bytes_to_write) { in Append() argument
114 return Write(contents_.size(), buffer, bytes_to_write); in Append()
388 int32_t bytes_to_write, in Write() argument
406 result = file_io_resource->node->Append(buffer, bytes_to_write); in Write()
408 result = file_io_resource->node->Write(offset, buffer, bytes_to_write); in Write()
Dfake_pepper_interface_html5fs.h41 int32_t Write(int64_t offset, const char* buffer, int32_t bytes_to_write);
42 int32_t Append(const char* buffer, int32_t bytes_to_write);
117 int32_t bytes_to_write,
/external/chromium_org/ppapi/c/
Dppb_tcp_socket.h203 int32_t bytes_to_write,
292 int32_t bytes_to_write,
Dppb_file_io.h223 int32_t bytes_to_write,
324 int32_t bytes_to_write,
/external/chromium_org/ppapi/proxy/
Dtcp_socket_private_resource.cc87 int32_t bytes_to_write, in Write() argument
89 return WriteImpl(buffer, bytes_to_write, callback); in Write()
Dtcp_socket_resource_base.cc247 int32_t bytes_to_write, in WriteImpl() argument
249 if (!buffer || bytes_to_write <= 0) in WriteImpl()
258 if (bytes_to_write > kMaxWriteSize) in WriteImpl()
259 bytes_to_write = kMaxWriteSize; in WriteImpl()
265 PpapiHostMsg_TCPSocket_Write(std::string(buffer, bytes_to_write)), in WriteImpl()
Dtcp_socket_resource.cc99 int32_t bytes_to_write, in Write() argument
101 return WriteImpl(buffer, bytes_to_write, callback); in Write()
/external/chromium_org/google_apis/gcm/base/
Dsocket_stream_unittest.cc144 uint64 bytes_to_write = (static_cast<uint64>(size) < bytes ? size : bytes); in DoOutputStreamWrite() local
147 bytes_to_write); in DoOutputStreamWrite()
148 if (bytes_to_write < static_cast<uint64>(size)) in DoOutputStreamWrite()
149 socket_output_stream_->BackUp(size - bytes_to_write); in DoOutputStreamWrite()
150 total_bytes_written += bytes_to_write; in DoOutputStreamWrite()
/external/chromium_org/components/nacl/loader/
Dnacl_ipc_adapter.cc192 size_t bytes_to_write = std::min(dest_buffer_size, in Read() local
194 if (bytes_to_write == 0) in Read()
197 memcpy(dest_buffer, &data_[data_read_cursor_], bytes_to_write); in Read()
198 data_read_cursor_ += bytes_to_write; in Read()
215 return static_cast<int>(bytes_to_write); in Read()
/external/chromium_org/media/base/android/
Dwebaudio_media_codec_bridge.cc184 int bytes_to_write = (count >= PIPE_BUF) ? PIPE_BUF : count; in OnChunkDecoded() local
187 bytes_to_write)); in OnChunkDecoded()
/external/chromium_org/ppapi/thunk/
Dppb_tcp_socket_thunk.cc95 int32_t bytes_to_write, in Write() argument
102 bytes_to_write, in Write()
Dppb_file_io_thunk.cc90 int32_t bytes_to_write, in Write() argument
98 bytes_to_write, in Write()

123