Searched refs:bytes_to_write (Results 1 - 25 of 57) sorted by relevance

123

/external/chromium_org/net/tools/flip_server/
H A Dring_buffer.cc54 int bytes_to_write = size;
56 if (bytes_available < bytes_to_write) {
57 bytes_to_write = bytes_available;
59 const char* end = bytes + bytes_to_write;
69 bytes_used_ += bytes_to_write;
70 return bytes_to_write;
/external/chromium_org/ppapi/proxy/
H A Dfile_io_resource.cc83 int32_t bytes_to_write,
88 bytes_to_write_(bytes_to_write),
268 int32_t bytes_to_write,
272 if (offset < 0 || bytes_to_write < 0)
289 increase = bytes_to_write;
291 uint64_t max_offset = offset + bytes_to_write;
300 scoped_ptr<char[]> copy(new char[bytes_to_write]);
301 memcpy(copy.get(), buffer, bytes_to_write);
309 bytes_to_write,
316 append_mode_write_amount_ += bytes_to_write;
80 WriteOp(scoped_refptr<FileHolder> file_holder, int64_t offset, scoped_ptr<char[]> buffer, int32_t bytes_to_write, bool append) argument
266 Write(int64_t offset, const char* buffer, int32_t bytes_to_write, scoped_refptr<TrackedCallback> callback) argument
487 WriteValidated( int64_t offset, const char* buffer, int32_t bytes_to_write, scoped_refptr<TrackedCallback> callback) argument
579 OnRequestWriteQuotaComplete( int64_t offset, scoped_ptr<char[]> buffer, int32_t bytes_to_write, scoped_refptr<TrackedCallback> callback, int64_t granted) argument
[all...]
H A Dtcp_socket_private_resource.cc87 int32_t bytes_to_write,
89 return WriteImpl(buffer, bytes_to_write, callback);
85 Write( const char* buffer, int32_t bytes_to_write, scoped_refptr<TrackedCallback> callback) argument
H A Dtcp_socket_resource.cc99 int32_t bytes_to_write,
101 return WriteImpl(buffer, bytes_to_write, callback);
98 Write(const char* buffer, int32_t bytes_to_write, scoped_refptr<TrackedCallback> callback) argument
H A Dfile_io_resource.h57 int32_t bytes_to_write,
158 int32_t bytes_to_write,
178 int32_t bytes_to_write,
191 int32_t bytes_to_write,
/external/chromium_org/content/test/net/
H A Durl_request_slow_download_job.cc140 int bytes_to_write = std::min(kFirstDownloadSize - bytes_already_sent_, local
142 for (int i = 0; i < bytes_to_write; ++i) {
145 *bytes_written = bytes_to_write;
146 bytes_already_sent_ += bytes_to_write;
154 int bytes_to_write = local
157 for (int i = 0; i < bytes_to_write; ++i) {
160 *bytes_written = bytes_to_write;
161 bytes_already_sent_ += bytes_to_write;
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/
H A D_stream_base.py135 def _write(self, bytes_to_write):
141 self._request.connection.write(bytes_to_write)
/external/chromium_org/mojo/common/test/
H A Dtest_utils.h25 size_t bytes_to_write,
H A Dtest_utils_posix.cc19 size_t bytes_to_write,
27 ssize_t result = HANDLE_EINTR(write(handle.fd, buffer, bytes_to_write));
17 BlockingWrite(const embedder::PlatformHandle& handle, const void* buffer, size_t bytes_to_write, size_t* bytes_written) argument
H A Dtest_utils_win.cc21 size_t bytes_to_write,
26 if (!WriteFile(handle.handle, buffer, static_cast<DWORD>(bytes_to_write),
19 BlockingWrite(const embedder::PlatformHandle& handle, const void* buffer, size_t bytes_to_write, size_t* bytes_written) argument
/external/chromium_org/ppapi/cpp/private/
H A Dtcp_socket_private.h46 int32_t bytes_to_write,
H A Dtcp_socket_private.cc203 int32_t bytes_to_write,
207 pp_resource(), buffer, bytes_to_write,
212 pp_resource(), buffer, bytes_to_write,
217 pp_resource(), buffer, bytes_to_write,
202 Write(const char* buffer, int32_t bytes_to_write, const CompletionCallback& callback) argument
/external/chromium_org/ppapi/c/
H A Dppb_tcp_socket.h194 * @param[in] bytes_to_write The number of bytes to write.
203 int32_t bytes_to_write,
292 int32_t bytes_to_write,
H A Dppb_file_io.h209 * @param[in] bytes_to_write The number of bytes to write to
223 int32_t bytes_to_write,
324 int32_t bytes_to_write,
/external/chromium_org/content/child/npapi/
H A Dplugin_stream.cc197 int bytes_to_write = instance_->NPP_WriteReady(&stream_); local
198 if (bytes_to_write > bytes_remaining)
199 bytes_to_write = bytes_remaining;
201 if (bytes_to_write == 0)
205 &stream_, data_offset_, bytes_to_write,
218 bytes_consumed = std::min(bytes_consumed, bytes_to_write);
/external/chromium_org/base/files/
H A Dfile_proxy.cc205 const char* buffer, int bytes_to_write)
207 buffer_(new char[bytes_to_write]),
208 bytes_to_write_(bytes_to_write),
210 memcpy(buffer_.get(), buffer, bytes_to_write);
315 int bytes_to_write,
318 if (bytes_to_write <= 0 || buffer == NULL)
322 new WriteHelper(this, file_.Pass(), buffer, bytes_to_write);
203 WriteHelper(FileProxy* proxy, File file, const char* buffer, int bytes_to_write) argument
313 Write(int64 offset, const char* buffer, int bytes_to_write, const WriteCallback& callback) argument
H A Dfile_proxy.h110 // This returns false if |bytes_to_write| is less than or equal to zero,
114 int bytes_to_write,
/external/chromium_org/chrome/utility/image_writer/
H A Dimage_writer.cc126 int bytes_to_write = bytes_read + (kMemoryAlignment - 1) - local
128 DCHECK_EQ(0, bytes_to_write % kMemoryAlignment);
130 device_file_.Write(bytes_processed_, buffer.get(), bytes_to_write);
/external/chromium_org/ppapi/c/private/
H A Dppb_tcp_socket_private.h144 * This method won't write more than 1 megabyte, so if |bytes_to_write|
150 int32_t bytes_to_write,
199 int32_t bytes_to_write,
232 int32_t bytes_to_write,
/external/chromium_org/ppapi/cpp/
H A Dtcp_socket.cc127 int32_t bytes_to_write,
131 pp_resource(), buffer, bytes_to_write,
136 pp_resource(), buffer, bytes_to_write,
126 Write(const char* buffer, int32_t bytes_to_write, const CompletionCallback& callback) argument
H A Dfile_io.h183 /// @param[in] bytes_to_write The number of bytes to write to
194 int32_t bytes_to_write,
H A Dtcp_socket.h148 /// @param[in] bytes_to_write The number of bytes to write.
155 int32_t bytes_to_write,
/external/chromium_org/ppapi/thunk/
H A Dppb_file_io_api.h41 int32_t bytes_to_write,
H A Dppb_tcp_socket_api.h32 int32_t bytes_to_write,
H A Dppb_tcp_socket_private_api.h40 int32_t bytes_to_write,

Completed in 7709 milliseconds

123