Searched refs:buf_size (Results 1 - 25 of 161) sorted by relevance

1234567

/external/chromium/net/url_request/
H A Durl_request_simple_job.cc40 bool URLRequestSimpleJob::ReadRawData(IOBuffer* buf, int buf_size, argument
44 if (buf_size > remaining)
45 buf_size = remaining;
46 memcpy(buf->data(), data_.data() + data_offset_, buf_size);
47 data_offset_ += buf_size;
48 *bytes_read = buf_size;
H A Durl_request_file_dir_job.h32 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
52 bool FillReadBuffer(char *buf, int buf_size, int *bytes_read);
H A Durl_request_file_dir_job.cc78 bool URLRequestFileDirJob::ReadRawData(IOBuffer* buf, int buf_size, argument
86 if (FillReadBuffer(buf->data(), buf_size, bytes_read))
92 read_buffer_length_ = buf_size;
205 bool URLRequestFileDirJob::FillReadBuffer(char *buf, int buf_size, argument
211 int count = std::min(buf_size, static_cast<int>(data_.size()));
H A Durl_request_simple_job.h23 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
/external/chromium/chrome/browser/net/
H A Dmetadata_url_request.cc32 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
72 bool MetadataRequestHandler::ReadRawData(net::IOBuffer* buf, int buf_size, argument
111 if (buf_size > remaining)
112 buf_size = remaining;
113 if (buf_size > 0) {
114 memcpy(buf->data(), &result_[data_offset_], buf_size);
115 data_offset_ += buf_size;
117 *bytes_read = buf_size;
H A Dview_http_cache_job_factory.cc39 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { argument
40 return core_->ReadRawData(buf, buf_size, bytes_read);
62 bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
159 int buf_size,
163 if (buf_size > remaining)
164 buf_size = remaining;
165 memcpy(buf->data(), data_.data() + data_offset_, buf_size);
166 data_offset_ += buf_size;
167 *bytes_read = buf_size;
158 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
H A Durl_request_slow_download_job.h30 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
/external/speex/libspeex/
H A Dbits.c54 bits->buf_size = MAX_CHARS_PER_FRAME;
61 EXPORT void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size) argument
64 bits->buf_size = buf_size;
71 EXPORT void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size) argument
74 bits->buf_size = buf_size;
78 bits->nbBits=buf_size<<LOG2_BITS_PER_CHAR;
113 if (nchars > bits->buf_size)
121 bits->buf_size
[all...]
/external/speex/include/speex/
H A Dspeex_bits.h56 int buf_size;/**< Allocated size for buffer */ member in struct:SpeexBits
65 void speex_bits_init_buffer(SpeexBits *bits, void *buff, int buf_size);
68 void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size);
/external/qemu/
H A Dqemu-option.h51 const char *get_opt_name(char *buf, int buf_size, const char *p, char delim);
52 const char *get_opt_value(char *buf, int buf_size, const char *p);
53 int get_next_param_value(char *buf, int buf_size,
55 int get_param_value(char *buf, int buf_size,
57 int check_params(char *buf, int buf_size,
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
H A Dcommon.c139 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
143 char *pos = buf, *end = buf + buf_size;
145 if (buf_size == 0)
163 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
168 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
170 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
177 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
182 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
185 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);
/external/chromium/chrome/browser/renderer_host/
H A Ddownload_throttling_resource_handler.cc98 int* buf_size,
102 return download_handler_->OnWillRead(request_id, buf, buf_size, min_size);
114 *buf_size = min_size;
201 int buf_size; local
202 if (download_handler_->OnWillRead(request_id_, &buffer, &buf_size,
204 CHECK(buf_size >= tmp_buffer_length_);
96 OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, int min_size) argument
H A Dsave_file_resource_handler.cc70 int* buf_size, int min_size) {
71 DCHECK(buf && buf_size);
73 *buf_size = min_size < 0 ? kReadBufSize : min_size;
74 read_buffer_ = new net::IOBuffer(*buf_size);
69 OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, int min_size) argument
/external/chromium/chrome/browser/ui/webui/
H A Dchrome_url_data_manager_backend.cc79 int buf_size,
101 void CompleteRead(net::IOBuffer* buf, int buf_size, int* bytes_read);
343 bool URLRequestChromeJob::ReadRawData(net::IOBuffer* buf, int buf_size, argument
350 pending_buf_size_ = buf_size;
355 CompleteRead(buf, buf_size, bytes_read);
359 void URLRequestChromeJob::CompleteRead(net::IOBuffer* buf, int buf_size, argument
362 if (buf_size > remaining)
363 buf_size = remaining;
364 if (buf_size > 0) {
365 memcpy(buf->data(), data_->front() + data_offset_, buf_size);
[all...]
/external/stlport/src/c_locale_win32/
H A Dc_locale_win32.c241 static void __GetLocaleInfoUsingACP(LCID lcid, const char* cp, LCTYPE lctype, char* buf, int buf_size, wchar_t* wbuf, int wbuf_size);
427 static int __ConvertDate(const char *NTDate, char *buffer, int buf_size) { argument
435 end_output = cur_output + buf_size;
436 buf_size = 0;
445 return ++buf_size;
450 buf_size += 2;
455 buf_size += 2;
461 buf_size += 2;
468 return ++buf_size;
471 buf_size
581 __ConvertTime(const char *NTTime, char *buffer, int buf_size) argument
1659 __GetLocaleInfoUsingACP(LCID lcid, const char* cp, LCTYPE lctype, char* buf, int buf_size, wchar_t* wbuf, int wbuf_size) argument
[all...]
/external/bluetooth/bluedroid/bta/include/
H A Dbta_hl_co.h164 ** buf_size - the size of the buffer
173 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
202 ** buf_size - the size of the buffer
211 UINT16 buf_size, UINT8 *p_buf, UINT16 evt);
/external/libpcap/
H A Dfad-gifc.c278 unsigned buf_size; local
304 buf_size = 8192;
306 buf = malloc(buf_size);
314 ifc.ifc_len = buf_size;
316 memset(buf, 0, buf_size);
325 if (ifc.ifc_len < buf_size &&
326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
329 buf_size *= 2;
/external/qemu/android/
H A Dsnapshot.c171 snapshot_format_size( char *buf, int buf_size, int64_t size ) argument
178 snprintf(buf, buf_size, "%" PRId64, size);
183 snprintf(buf, buf_size, "%0.1f%c",
188 snprintf(buf, buf_size, "%" PRId64 "%c",
200 snapshot_format_create_date( char *buf, size_t buf_size, time_t *time ) argument
204 strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", tm);
209 snapshot_format_vm_clock( char *buf, size_t buf_size, uint64_t vm_clock_nsec ) argument
212 snprintf(buf, buf_size, "%02d:%02d:%02d.%03d",
/external/oprofile/module/
H A Doprofile.c60 return data->nextbuf >= (data->buf_size - data->buf_watermark) && !oprof_ready[cpu];
65 if (unlikely(++data->nextbuf == data->buf_size))
260 int size = data->buf_size;
318 max = sizeof(struct op_buffer_head) + sizeof(struct op_sample) * sysctl.buf_size;
434 ulong buf_size; local
450 data->buf_size = 0;
456 buf_size = (sizeof(struct op_sample) * sysctl.buf_size);
461 data->buffer = vmalloc(buf_size);
463 printk(KERN_ERR "oprofile: failed to allocate eviction buffer of %lu bytes\n", buf_size);
[all...]
H A Doprofile.h46 uint buf_size; member in struct:_oprof_data
72 int buf_size; member in struct:oprof_sysctl
/external/chromium/base/
H A Dstringprintf.cc16 // Overloaded wrappers around vsnprintf and vswprintf. The buf_size parameter
23 size_t buf_size,
26 return base::vsnprintf(buffer, buf_size, format, argptr);
30 size_t buf_size,
33 return base::vswprintf(buffer, buf_size, format, argptr);
22 vsnprintfT(char* buffer, size_t buf_size, const char* format, va_list argptr) argument
29 vsnprintfT(wchar_t* buffer, size_t buf_size, const wchar_t* format, va_list argptr) argument
/external/libnfc-nci/src/udrv/include/
H A Duamp_api.h156 ** buf_size: size of p_buf
162 BT_API UINT16 UAMP_Read(tUAMP_ID amp_id, UINT8 *p_buf, UINT16 buf_size, tUAMP_CH channel);
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dcommon.c187 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
191 char *pos = buf, *end = buf + buf_size;
193 if (buf_size == 0)
211 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
216 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
218 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
225 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
230 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
233 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);
/external/wpa_supplicant_8/src/utils/
H A Dcommon.c187 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
191 char *pos = buf, *end = buf + buf_size;
193 if (buf_size == 0)
211 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
216 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
218 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
225 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
230 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
233 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dcommon.c187 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, argument
191 char *pos = buf, *end = buf + buf_size;
193 if (buf_size == 0)
211 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
216 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) argument
218 return _wpa_snprintf_hex(buf, buf_size, data, len, 0);
225 * @buf_size: Maximum buffer size in bytes (should be at least 2 * len + 1)
230 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, argument
233 return _wpa_snprintf_hex(buf, buf_size, data, len, 1);

Completed in 432 milliseconds

1234567