/external/chromium_org/net/quic/ |
H A D | quic_http_stream.cc | 172 IOBuffer* buf, int buf_len, const CompletionCallback& callback) { 174 CHECK(buf_len); 180 while (!response_body_.empty() && buf_len > 0) { 182 const int bytes_to_copy = std::min(buf_len, data->size()); 184 buf_len -= bytes_to_copy; 211 user_buffer_len_ = buf_len; 171 ReadResponseBody( IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument
|
/external/chromium_org/net/socket/ |
H A D | socks_client_socket.cc | 180 int SOCKSClientSocket::Read(IOBuffer* buf, int buf_len, argument 188 buf, buf_len, 198 int SOCKSClientSocket::Write(IOBuffer* buf, int buf_len, argument 206 buf, buf_len,
|
H A D | ssl_server_socket_unittest.cc | 64 int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback) { argument 72 read_buf_len_ = buf_len; 75 return PropogateData(buf, buf_len); 78 int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback) { argument 92 new StringIOBuffer(std::string(buf->data(), buf_len)), 93 buf_len)); 97 return buf_len; 173 virtual int Read(IOBuffer* buf, int buf_len, 176 buf_len = rand() % buf_len [all...] |
H A D | ssl_client_socket_openssl.cc | 630 int buf_len, 633 user_read_buf_len_ = buf_len; 655 int buf_len, 658 user_write_buf_len_ = buf_len; 629 Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument 654 Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument
|
H A D | ssl_server_socket_nss.cc | 196 int SSLServerSocketNSS::Read(IOBuffer* buf, int buf_len, argument 205 user_read_buf_len_ = buf_len; 220 int SSLServerSocketNSS::Write(IOBuffer* buf, int buf_len, argument 228 user_write_buf_len_ = buf_len;
|
/external/chromium_org/net/spdy/ |
H A D | spdy_http_stream.cc | 120 IOBuffer* buf, int buf_len, const CompletionCallback& callback) { 125 CHECK(buf_len); 130 return response_body_queue_.Dequeue(buf->data(), buf_len); 141 user_buffer_len_ = buf_len; 119 ReadResponseBody( IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument
|
H A D | spdy_proxy_client_socket.cc | 196 int SpdyProxyClientSocket::Read(IOBuffer* buf, int buf_len, argument 210 size_t result = PopulateUserReadBuffer(buf->data(), buf_len); 213 user_buffer_len_ = static_cast<size_t>(buf_len); 226 int SpdyProxyClientSocket::Write(IOBuffer* buf, int buf_len, argument 233 spdy_stream_->SendData(buf, buf_len, MORE_DATA_TO_SEND); 235 buf_len, buf->data()); 237 write_buffer_len_ = buf_len;
|
/external/chromium_org/net/udp/ |
H A D | udp_socket_libevent.cc | 162 int buf_len, 164 return RecvFrom(buf, buf_len, NULL, callback); 168 int buf_len, 176 DCHECK_GT(buf_len, 0); 178 int nread = InternalRecvFrom(buf, buf_len, address); 192 read_buf_len_ = buf_len; 199 int buf_len, 201 return SendToOrWrite(buf, buf_len, NULL, callback); 205 int buf_len, 208 return SendToOrWrite(buf, buf_len, 161 Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument 167 RecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address, const CompletionCallback& callback) argument 198 Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument 204 SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address, const CompletionCallback& callback) argument 211 SendToOrWrite(IOBuffer* buf, int buf_len, const IPEndPoint* address, const CompletionCallback& callback) argument 463 InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address) argument 490 InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address) argument [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/ec/ |
H A D | ec_asn1.c | 385 size_t buf_len = 0, tmp_len; local 401 buf_len = BN_num_bytes(key->priv_key); 402 buffer = OPENSSL_malloc(buf_len); 413 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) { 438 if (tmp_len > buf_len) { 445 buf_len = tmp_len; 449 buf_len, NULL)) { 456 if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, buf_len)) { 540 size_t buf_len = 0; local 548 buf_len [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
H A D | p_ec_asn1.c | 390 size_t buf_len = 0, i; local 432 buf_len = pub_key_bytes_len; 438 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len) 439 buf_len = i; 444 buf_len += 10; 445 if ((buffer = OPENSSL_malloc(buf_len)) == NULL) {
|
/external/libnfc-nxp/src/ |
H A D | phLlcNfc_Frame.c | 1900 uint8_t buf_len = local 1920 PH_LLCNFC_PRINT_DATA(print_buf, buf_len); 1929 PH_LLCNFC_PRINT_DATA(print_buf, buf_len); 1938 PH_LLCNFC_PRINT_DATA(print_buf, buf_len);
|
/external/lldb/tools/debugserver/source/MacOSX/ |
H A D | MachThreadList.cpp | 186 MachThreadList::GetRegisterContext (nub_thread_t tid, void *buf, size_t buf_len) argument 190 return thread_sp->GetRegisterContext (buf, buf_len); 195 MachThreadList::SetRegisterContext (nub_thread_t tid, const void *buf, size_t buf_len) argument 199 return thread_sp->SetRegisterContext (buf, buf_len);
|
/external/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 440 size_t buf_len=0; local 462 update_buflen(x->p, &buf_len); 463 update_buflen(x->q, &buf_len); 464 update_buflen(x->g, &buf_len); 465 update_buflen(priv_key, &buf_len); 466 update_buflen(pub_key, &buf_len); 468 m=(unsigned char *)OPENSSL_malloc(buf_len+10); 569 size_t buf_len = 0; local 571 update_buflen(dsa_sig->r, &buf_len); 572 update_buflen(dsa_sig->s, &buf_len); [all...] |
/external/openssl/crypto/ec/ |
H A D | ec_ameth.c | 432 size_t buf_len=0, i; local 464 buf_len = (size_t)BN_num_bytes(pub_key); 471 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len) 472 buf_len = i; 479 buf_len += 10; 480 if ((buffer = OPENSSL_malloc(buf_len)) == NULL)
|
/external/openssl/crypto/ |
H A D | mem_dbg.c | 715 int buf_len; local 724 buf_len=strlen(buf); 726 if (128 - buf_len - 3 < info_len) 728 memcpy(buf + buf_len, amip->info, 128 - buf_len - 3); 729 buf_len = 128 - 3; 733 BUF_strlcpy(buf + buf_len, amip->info, 734 sizeof buf - buf_len); 735 buf_len = strlen(buf); 737 BIO_snprintf(buf + buf_len, sizeo [all...] |
/external/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 189 size_t buf_len=0; local 191 update_buflen(x->n, &buf_len); 192 update_buflen(x->e, &buf_len); 196 update_buflen(x->d, &buf_len); 197 update_buflen(x->p, &buf_len); 198 update_buflen(x->q, &buf_len); 199 update_buflen(x->dmp1, &buf_len); 200 update_buflen(x->dmq1, &buf_len); 201 update_buflen(x->iqmp, &buf_len); 204 m=(unsigned char *)OPENSSL_malloc(buf_len [all...] |
/external/wpa_supplicant_8/hostapd/src/eap_peer/ |
H A D | eap_fast_pac.c | 186 size_t buf_len; member in struct:eap_fast_read_ctx 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 206 if (len >= rc->buf_len) 207 len = rc->buf_len - 1; 213 rc->buf[rc->buf_len - 1] = '\0'; 259 rc->buf_len = 2048; 260 rc->buf = os_malloc(rc->buf_len); 477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument 493 if (*pos - *buf + need > *buf_len) { 494 char *nbuf = os_realloc(*buf, *buf_len 574 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument 624 size_t buf_len; local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
H A D | eap_fast_pac.c | 186 size_t buf_len; member in struct:eap_fast_read_ctx 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 206 if (len >= rc->buf_len) 207 len = rc->buf_len - 1; 213 rc->buf[rc->buf_len - 1] = '\0'; 259 rc->buf_len = 2048; 260 rc->buf = os_malloc(rc->buf_len); 477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument 493 if (*pos - *buf + need > *buf_len) { 494 char *nbuf = os_realloc(*buf, *buf_len 574 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument 624 size_t buf_len; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/ |
H A D | eap_fast_pac.c | 186 size_t buf_len; member in struct:eap_fast_read_ctx 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) 206 if (len >= rc->buf_len) 207 len = rc->buf_len - 1; 213 rc->buf[rc->buf_len - 1] = '\0'; 259 rc->buf_len = 2048; 260 rc->buf = os_malloc(rc->buf_len); 477 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, argument 493 if (*pos - *buf + need > *buf_len) { 494 char *nbuf = os_realloc(*buf, *buf_len 574 eap_fast_add_pac_data(struct eap_fast_pac *pac, char **buf, char **pos, size_t *buf_len) argument 624 size_t buf_len; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
H A D | wnm_sta.c | 29 u16 *buf_len, enum wnm_oper oper) 33 return wpa_drv_wnm_oper(wpa_s, oper, wpa_s->bssid, buf, buf_len); 39 const u8 *addr, u8 *buf, u16 *buf_len, 44 return wpa_drv_wnm_oper(wpa_s, oper, addr, buf, buf_len); 28 ieee80211_11_get_tfs_ie(struct wpa_supplicant *wpa_s, u8 *buf, u16 *buf_len, enum wnm_oper oper) argument 38 ieee80211_11_set_tfs_ie(struct wpa_supplicant *wpa_s, const u8 *addr, u8 *buf, u16 *buf_len, enum wnm_oper oper) argument
|
/external/chromium_org/base/third_party/symbolize/ |
H A D | symbolize.cc | 398 explicit LineReader(int fd, char *buf, int buf_len) : fd_(fd), argument 399 buf_(buf), buf_len_(buf_len), bol_(buf), eol_(buf), eod_(buf) {
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | js_fs_test.cc | 446 void FillDummyBuffer(uint8_t* buf, size_t buf_len) { argument 447 for (uint32_t i = 0; i < buf_len; ++i) { 452 bool EqualsDummyArrayBuffer(uint8_t* buf, size_t buf_len) { argument 453 for (uint32_t i = 0; i < buf_len; ++i) {
|
/external/chromium_org/net/disk_cache/blockfile/ |
H A D | sparse_control.cc | 245 int buf_len, const CompletionCallback& callback) { 251 if (offset < 0 || buf_len < 0) 255 if (static_cast<uint64>(offset) + static_cast<unsigned int>(buf_len) >= 269 user_buf_ = buf ? new net::DrainableIOBuffer(buf, buf_len) : NULL; 270 buf_len_ = buf_len; 244 StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument
|
H A D | sparse_control_v3.cc | 226 int buf_len, const CompletionCallback& callback) { 232 if (offset < 0 || buf_len < 0) 236 if (offset + buf_len >= 0x1000000000LL || offset + buf_len < 0) 248 user_buf_ = buf ? new net::DrainableIOBuffer(buf, buf_len) : NULL; 249 buf_len_ = buf_len; 225 StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, int buf_len, const CompletionCallback& callback) argument
|
/external/chromium_org/net/http/ |
H A D | http_stream_parser.cc | 338 int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len, argument 343 DCHECK_LE(buf_len, kMaxBufSize); 349 user_read_buf_len_ = buf_len;
|