HomeSort by relevance Sort by last modified time
    Searched full:buffer_len (Results 1 - 25 of 146) sorted by null

1 2 3 4 5 6

  /external/chromium_org/net/disk_cache/blockfile/
file_posix.cc 57 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
59 if (buffer_len > static_cast<size_t>(kint32max) ||
64 int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len);
65 return (static_cast<size_t>(ret) == buffer_len);
68 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
70 if (buffer_len > static_cast<size_t>(kint32max) ||
76 buffer_len);
77 return (static_cast<size_t>(ret) == buffer_len);
80 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
86 return Read(buffer, buffer_len, offset)
    [all...]
file_win.cc 112 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
114 if (buffer_len > ULONG_MAX || offset > LONG_MAX)
118 buffer_len);
119 return static_cast<int>(buffer_len) == ret;
122 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
124 if (buffer_len > ULONG_MAX || offset > ULONG_MAX)
128 buffer_len);
129 return static_cast<int>(buffer_len) == ret;
135 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
141 return Read(buffer, buffer_len, offset)
    [all...]
file_ios.cc 189 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
191 if (buffer_len > static_cast<size_t>(kint32max) ||
196 int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len);
197 return (static_cast<size_t>(ret) == buffer_len);
200 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
202 if (buffer_len > static_cast<size_t>(kint32max) ||
208 buffer_len);
209 return (static_cast<size_t>(ret) == buffer_len);
215 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
221 return Read(buffer, buffer_len, offset)
    [all...]
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,
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);
  /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,
  /external/chromium_org/third_party/webrtc/base/
socketstream.cc 60 StreamResult SocketStream::Read(void* buffer, size_t buffer_len,
63 int result = socket_->Recv(buffer, buffer_len);
71 if ((result > 0) || (buffer_len == 0)) {
stream.cc 57 StreamResult StreamInterface::ReadAll(void* buffer, size_t buffer_len,
61 while (total_read < buffer_len) {
63 buffer_len - total_read, &current_read, error);
172 StreamResult StreamTap::Read(void* buffer, size_t buffer_len,
178 StreamResult res = StreamAdapterInterface::Read(buffer, buffer_len,
218 StreamResult StreamSegment::Read(void* buffer, size_t buffer_len,
223 buffer_len = _min(buffer_len, length_ - pos_);
229 StreamResult result = StreamAdapterInterface::Read(buffer, buffer_len,
297 StreamResult NullStream::Read(void* buffer, size_t buffer_len,
    [all...]
socketstream.h 34 virtual StreamResult Read(void* buffer, size_t buffer_len,
stream.h 70 // Read attempts to fill buffer of size buffer_len. Write attempts to send
83 virtual StreamResult Read(void* buffer, size_t buffer_len,
213 // Similar to ReadAll. Calls Read until buffer_len bytes have been read, or
215 StreamResult ReadAll(void* buffer, size_t buffer_len,
251 virtual StreamResult Read(void* buffer, size_t buffer_len,
253 return stream_->Read(buffer, buffer_len, read, error);
346 virtual StreamResult Read(void* buffer, size_t buffer_len,
374 virtual StreamResult Read(void* buffer, size_t buffer_len,
397 virtual StreamResult Read(void* buffer, size_t buffer_len,
424 virtual StreamResult Read(void* buffer, size_t buffer_len,
    [all...]
transformadapter.cc 34 TransformAdapter::Read(void * buffer, size_t buffer_len,
65 size_t out_len = buffer_len;
transformadapter.h 50 virtual StreamResult Read(void * buffer, size_t buffer_len,
  /frameworks/base/core/java/com/android/internal/util/
FastXmlSerializer.java 51 private static final int BUFFER_LEN = 8192;
55 private final char[] mText = new char[BUFFER_LEN];
62 private ByteBuffer mBytes = ByteBuffer.allocate(BUFFER_LEN);
72 if (pos >= (BUFFER_LEN-1)) {
81 if (length > BUFFER_LEN) {
84 int next = i + BUFFER_LEN;
85 append(str, i, next<end ? BUFFER_LEN : (end-i));
91 if ((pos+length) > BUFFER_LEN) {
100 if (length > BUFFER_LEN) {
103 int next = i + BUFFER_LEN;
    [all...]
FastPrintWriter.java 291 final int BUFFER_LEN = mBufferLen;
292 if (length > BUFFER_LEN) {
295 int next = i + BUFFER_LEN;
296 appendLocked(str, i, next < end ? BUFFER_LEN : (end - i));
302 if ((pos+length) > BUFFER_LEN) {
311 final int BUFFER_LEN = mBufferLen;
312 if (length > BUFFER_LEN) {
315 int next = i + BUFFER_LEN;
316 appendLocked(buf, i, next < end ? BUFFER_LEN : (end - i));
322 if ((pos+length) > BUFFER_LEN) {
    [all...]
  /external/dhcpcd/
bpf.c 100 iface->buffer_len = iface->buffer_pos = 0;
179 if (iface->buffer_len == 0) {
185 iface->buffer_len = bytes;
194 iface->buffer_len)
204 if (iface->buffer_pos >= iface->buffer_len)
205 iface->buffer_len = iface->buffer_pos = 0;
  /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...]
  /external/chromium_org/third_party/libjingle/source/talk/base/
stream.cc 74 StreamResult StreamInterface::ReadAll(void* buffer, size_t buffer_len,
78 while (total_read < buffer_len) {
80 buffer_len - total_read, &current_read, error);
189 StreamResult StreamTap::Read(void* buffer, size_t buffer_len,
195 StreamResult res = StreamAdapterInterface::Read(buffer, buffer_len,
235 StreamResult StreamSegment::Read(void* buffer, size_t buffer_len,
240 buffer_len = _min(buffer_len, length_ - pos_);
246 StreamResult result = StreamAdapterInterface::Read(buffer, buffer_len,
314 StreamResult NullStream::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)) {
socketstream.h 51 virtual StreamResult Read(void* buffer, size_t buffer_len,
stream.h 87 // Read attempts to fill buffer of size buffer_len. Write attempts to send
100 virtual StreamResult Read(void* buffer, size_t buffer_len,
230 // Similar to ReadAll. Calls Read until buffer_len bytes have been read, or
232 StreamResult ReadAll(void* buffer, size_t buffer_len,
268 virtual StreamResult Read(void* buffer, size_t buffer_len,
270 return stream_->Read(buffer, buffer_len, read, error);
363 virtual StreamResult Read(void* buffer, size_t buffer_len,
391 virtual StreamResult Read(void* buffer, size_t buffer_len,
414 virtual StreamResult Read(void* buffer, size_t buffer_len,
441 virtual StreamResult Read(void* buffer, size_t buffer_len,
    [all...]
  /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/third_party/mesa/src/src/gallium/state_trackers/vega/
api_filters.c 291 VGint buffer_len; local
331 buffer_len = 8 + 2 * 4 * kernel_size;
332 buffer = (VGfloat*)malloc(buffer_len * sizeof(VGfloat));
376 info.user_data = (void*)(long)(buffer_len/4);
378 info.const_buffer_len = buffer_len * sizeof(VGfloat);
487 VGint buffer_len; local
521 buffer_len = 8 + 2 * 4 * kernel_size;
522 buffer = (VGfloat*)malloc(buffer_len * sizeof(VGfloat));
566 info.user_data = (void*)(long)(buffer_len/4);
568 info.const_buffer_len = buffer_len * sizeof(VGfloat)
    [all...]
  /external/mesa3d/src/gallium/state_trackers/vega/
api_filters.c 291 VGint buffer_len; local
331 buffer_len = 8 + 2 * 4 * kernel_size;
332 buffer = (VGfloat*)malloc(buffer_len * sizeof(VGfloat));
376 info.user_data = (void*)(long)(buffer_len/4);
378 info.const_buffer_len = buffer_len * sizeof(VGfloat);
487 VGint buffer_len; local
521 buffer_len = 8 + 2 * 4 * kernel_size;
522 buffer = (VGfloat*)malloc(buffer_len * sizeof(VGfloat));
566 info.user_data = (void*)(long)(buffer_len/4);
568 info.const_buffer_len = buffer_len * sizeof(VGfloat)
    [all...]
  /external/chromium_org/components/autofill/core/browser/crypto/
rc4_decryptor.h 85 void RunInternal(uint8 *buffer, int buffer_len) {
94 for (counter = 0; counter < buffer_len; ++counter) {

Completed in 1169 milliseconds

1 2 3 4 5 6