/external/chromium_org/net/disk_cache/ |
file_posix.cc | 71 bool File::Read(void* buffer, size_t buffer_len, size_t offset) { 73 if (buffer_len > static_cast<size_t>(kint32max) || 79 static_cast<char*>(buffer), buffer_len); 80 return (static_cast<size_t>(ret) == buffer_len); 83 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { 85 if (buffer_len > static_cast<size_t>(kint32max) || 92 buffer_len); 93 return (static_cast<size_t>(ret) == buffer_len); 96 bool File::Read(void* buffer, size_t buffer_len, size_t offset, 102 return Read(buffer, buffer_len, offset) [all...] |
file.h | 55 bool Read(void* buffer, size_t buffer_len, size_t offset); 56 bool Write(const void* buffer, size_t buffer_len, size_t offset); 60 bool Read(void* buffer, size_t buffer_len, size_t offset, 62 bool Write(const void* buffer, size_t buffer_len, size_t offset, 82 bool AsyncWrite(const void* buffer, size_t buffer_len, size_t offset, 86 int DoRead(void* buffer, size_t buffer_len, size_t offset); 87 int DoWrite(const void* buffer, size_t buffer_len, size_t offset);
|
file_ios.cc | 203 bool File::Read(void* buffer, size_t buffer_len, size_t offset) { 205 if (buffer_len > static_cast<size_t>(kint32max) || 211 static_cast<char*>(buffer), buffer_len); 212 return (static_cast<size_t>(ret) == buffer_len); 215 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { 217 if (buffer_len > static_cast<size_t>(kint32max) || 224 buffer_len); 225 return (static_cast<size_t>(ret) == buffer_len); 231 bool File::Read(void* buffer, size_t buffer_len, size_t offset, 237 return Read(buffer, buffer_len, offset) [all...] |
file_win.cc | 126 bool File::Read(void* buffer, size_t buffer_len, size_t offset) { 128 if (buffer_len > ULONG_MAX || offset > LONG_MAX) 137 DWORD size = static_cast<DWORD>(buffer_len); 143 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { 145 if (buffer_len > ULONG_MAX || offset > ULONG_MAX) 154 DWORD size = static_cast<DWORD>(buffer_len); 163 bool File::Read(void* buffer, size_t buffer_len, size_t offset, 169 return Read(buffer, buffer_len, offset); 172 if (buffer_len > ULONG_MAX || offset > ULONG_MAX) 176 DWORD size = static_cast<DWORD>(buffer_len); [all...] |
/external/chromium/net/disk_cache/ |
file.h | 52 bool Read(void* buffer, size_t buffer_len, size_t offset); 53 bool Write(const void* buffer, size_t buffer_len, size_t offset); 57 bool Read(void* buffer, size_t buffer_len, size_t offset, 59 bool Write(const void* buffer, size_t buffer_len, size_t offset, 75 bool AsyncWrite(const void* buffer, size_t buffer_len, size_t offset,
|
file_posix.cc | 203 bool File::Read(void* buffer, size_t buffer_len, size_t offset) { 205 if (buffer_len > ULONG_MAX || offset > LONG_MAX) 208 int ret = pread(platform_file_, buffer, buffer_len, offset); 209 return (static_cast<size_t>(ret) == buffer_len); 212 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { 214 if (buffer_len > ULONG_MAX || offset > ULONG_MAX) 217 int ret = pwrite(platform_file_, buffer, buffer_len, offset); 218 return (static_cast<size_t>(ret) == buffer_len); 224 bool File::Read(void* buffer, size_t buffer_len, size_t offset, 230 return Read(buffer, buffer_len, offset) [all...] |
file_win.cc | 123 bool File::Read(void* buffer, size_t buffer_len, size_t offset) { 125 if (buffer_len > ULONG_MAX || offset > LONG_MAX) 134 DWORD size = static_cast<DWORD>(buffer_len); 140 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) { 142 if (buffer_len > ULONG_MAX || offset > ULONG_MAX) 151 DWORD size = static_cast<DWORD>(buffer_len); 160 bool File::Read(void* buffer, size_t buffer_len, size_t offset, 166 return Read(buffer, buffer_len, offset); 169 if (buffer_len > ULONG_MAX || offset > ULONG_MAX) 173 DWORD size = static_cast<DWORD>(buffer_len); [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
utf16reader.cpp | 41 bool Utf16Reader::open(const char* filename, size_t buffer_len) { 45 if (buffer_len < MIN_BUF_LEN) 46 buffer_len = MIN_BUF_LEN; 47 else if (buffer_len > MAX_BUF_LEN) 48 buffer_len = MAX_BUF_LEN; 50 buffer_total_len_ = buffer_len;
|
/packages/inputmethods/PinyinIME/jni/include/ |
utf16reader.h | 40 // buffer_len specifies how long buffer should be allocated to speed up the 42 bool open(const char* filename, size_t buffer_len);
|
/external/chromium_org/base/ |
async_socket_io_handler_posix.cc | 45 bool AsyncSocketIoHandler::Read(char* buffer, int buffer_len) { 52 int bytes_read = HANDLE_EINTR(read(socket_, buffer, buffer_len)); 56 pending_buffer_len_ = buffer_len;
|
async_socket_io_handler_win.cc | 41 bool AsyncSocketIoHandler::Read(char* buffer, int buffer_len) { 48 BOOL ok = ::ReadFile(socket_, buffer, buffer_len, &bytes_read,
|
async_socket_io_handler.h | 74 bool Read(char* buffer, int buffer_len);
|
/external/openssh/ |
compress.c | 96 if (buffer_len(input_buffer) == 0) 101 outgoing_stream.avail_in = buffer_len(input_buffer); 141 incoming_stream.avail_in = buffer_len(input_buffer);
|
packet.c | 262 while (buffer_len(&active_state->incoming_packet) < 282 if (buffer_len(&active_state->input) >= discard) 285 buffer_len(&active_state->input); 678 buffer_len(&active_state->compression_buffer)); 681 len = buffer_len(&active_state->outgoing_packet) + 4 - 8; 698 buffer_len(&active_state->outgoing_packet)); 711 buffer_len(&active_state->outgoing_packet)); 714 buffer_len(&active_state->outgoing_packet)); 722 buffer_len(&active_state->outgoing_packet); 872 len = buffer_len(&active_state->outgoing_packet) [all...] |
ssh-ecdsa.c | 82 buffer_put_string(&b, buffer_ptr(&bb), buffer_len(&bb)); 84 len = buffer_len(&b); 127 rlen = buffer_len(&b); 146 if (buffer_len(&bb) != 0)
|
/external/chromium/third_party/libjingle/source/talk/base/ |
socketstream.h | 51 virtual StreamResult Read(void* buffer, size_t buffer_len,
|
socketstream.cc | 77 StreamResult SocketStream::Read(void* buffer, size_t buffer_len, 80 int result = socket_->Recv(buffer, buffer_len); 88 if ((result > 0) || (buffer_len == 0)) {
|
/external/chromium_org/ipc/ |
ipc_channel_reader.h | 70 virtual ReadState ReadData(char* buffer, int buffer_len, int* bytes_read) = 0;
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
socketstream.h | 51 virtual StreamResult Read(void* buffer, size_t buffer_len,
|
stream.h | 85 // Read attempts to fill buffer of size buffer_len. Write attempts to send 98 virtual StreamResult Read(void* buffer, size_t buffer_len, 228 // Similar to ReadAll. Calls Read until buffer_len bytes have been read, or 230 StreamResult ReadAll(void* buffer, size_t buffer_len, 266 virtual StreamResult Read(void* buffer, size_t buffer_len, 268 return stream_->Read(buffer, buffer_len, read, error); 361 virtual StreamResult Read(void* buffer, size_t buffer_len, 389 virtual StreamResult Read(void* buffer, size_t buffer_len, 412 virtual StreamResult Read(void* buffer, size_t buffer_len, 439 virtual StreamResult Read(void* buffer, size_t buffer_len, [all...] |
socketstream.cc | 77 StreamResult SocketStream::Read(void* buffer, size_t buffer_len, 80 int result = socket_->Recv(buffer, buffer_len); 88 if ((result > 0) || (buffer_len == 0)) {
|
transformadapter.h | 67 virtual StreamResult Read(void * buffer, size_t buffer_len,
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/ |
intel_buffer_objects.c | 494 if (intel->upload.buffer_len) { 497 intel->upload.buffer_len, 499 intel->upload.buffer_len = 0; 535 if (intel->upload.buffer_len && 536 intel->upload.buffer_len + delta + size > sizeof(intel->upload.buffer)) 540 intel->upload.buffer_len, 542 intel->upload.buffer_len = 0; 547 if (intel->upload.buffer_len == 0) 550 intel->upload.buffer_len += delta; 552 memcpy(intel->upload.buffer + intel->upload.buffer_len, ptr, size) [all...] |
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_buffer_objects.c | 494 if (intel->upload.buffer_len) { 497 intel->upload.buffer_len, 499 intel->upload.buffer_len = 0; 535 if (intel->upload.buffer_len && 536 intel->upload.buffer_len + delta + size > sizeof(intel->upload.buffer)) 540 intel->upload.buffer_len, 542 intel->upload.buffer_len = 0; 547 if (intel->upload.buffer_len == 0) 550 intel->upload.buffer_len += delta; 552 memcpy(intel->upload.buffer + intel->upload.buffer_len, ptr, size) [all...] |
/external/chromium_org/remoting/protocol/ |
channel_multiplexer.cc | 88 int DoRead(net::IOBuffer* buffer, int buffer_len); 114 virtual int Read(net::IOBuffer* buffer, int buffer_len, 116 virtual int Write(net::IOBuffer* buffer, int buffer_len, 255 int buffer_len) { 257 while (buffer_len > 0 && !pending_packets_.empty()) { 260 buffer->data() + pos, buffer_len); 261 DCHECK_LE(result, buffer_len); 263 buffer_len -= pos; 284 net::IOBuffer* buffer, int buffer_len, 289 int result = channel_->DoRead(buffer, buffer_len); [all...] |