Searched defs:max_bytes (Results 1 - 25 of 33) sorted by relevance

12

/external/chromium_org/chrome/browser/prerender/
H A Dprerender_config.h20 size_t max_bytes; member in struct:prerender::Config
/external/chromium_org/content/test/net/
H A Durl_request_abort_on_end_job.cc101 const int max_bytes,
104 *bytes_read = std::min(size_t(max_bytes), sizeof(kPageContent));
100 ReadRawData(net::IOBuffer* buf, const int max_bytes, int* bytes_read) argument
/external/chromium_org/sdch/open-vcdiff/src/
H A Dblockhash_test.cc63 int max_bytes) {
66 max_bytes);
71 int max_bytes) {
74 max_bytes);
393 // characters -- in fact, they're the same string -- but since max_bytes is zero
452 const int max_bytes = expected_length - 1;
453 EXPECT_EQ(max_bytes, MatchingBytesToLeft(
456 max_bytes));
463 const int max_bytes = expected_length + 1;
467 max_bytes));
61 MatchingBytesToLeft(const char* source_match_start, const char* target_match_start, int max_bytes) argument
69 MatchingBytesToRight(const char* source_match_end, const char* target_match_end, int max_bytes) argument
[all...]
H A Dblockhash.cc348 // Will not examine more than max_bytes bytes, which is to say that
349 // the return value will be in the range [0, max_bytes] inclusive.
352 int max_bytes) {
356 while (bytes_found < max_bytes) {
369 // Will not examine more than max_bytes bytes, which is to say that
370 // the return value will be in the range [0, max_bytes] inclusive.
373 int max_bytes) {
377 while ((bytes_found < max_bytes) && (*source_ptr == *target_ptr)) {
350 MatchingBytesToLeft(const char* source_match_start, const char* target_match_start, int max_bytes) argument
371 MatchingBytesToRight(const char* source_match_end, const char* target_match_end, int max_bytes) argument
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/fix/test/
H A Disac_speed_test.cc29 int max_bytes, int* encoded_bytes);
64 int max_bytes, int* encoded_bytes) {
78 assert(value <= max_bytes);
63 EncodeABlock(int16_t* in_data, uint8_t* bit_stream, int max_bytes, int* encoded_bytes) argument
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/opus/
H A Dopus_speed_test.cc27 int max_bytes, int* encoded_bytes);
59 int max_bytes, int* encoded_bytes) {
62 input_length_sample_, max_bytes,
58 EncodeABlock(int16_t* in_data, uint8_t* bit_stream, int max_bytes, int* encoded_bytes) argument
/external/chromium_org/mojo/system/
H A Dlocal_message_pipe_endpoint.cc74 const uint32_t max_bytes = num_bytes.IsNull() ? 0 : num_bytes.Get(); local
88 if (message->num_bytes() <= max_bytes)
/external/chromium_org/net/disk_cache/
H A Dcache_creator.cc26 int max_bytes,
64 int max_bytes,
75 max_bytes_(max_bytes),
166 int max_bytes,
174 *backend = disk_cache::MemBackendImpl::CreateBackend(max_bytes, net_log);
180 max_bytes,
61 CacheCreator( const base::FilePath& path, bool force, int max_bytes, net::CacheType type, net::BackendType backend_type, uint32 flags, const scoped_refptr<base::SingleThreadTaskRunner>& thread, net::NetLog* net_log, scoped_ptr<disk_cache::Backend>* backend, const net::CompletionCallback& callback) argument
162 CreateCacheBackend( net::CacheType type, net::BackendType backend_type, const base::FilePath& path, int max_bytes, bool force, const scoped_refptr<base::SingleThreadTaskRunner>& thread, net::NetLog* net_log, scoped_ptr<Backend>* backend, const net::CompletionCallback& callback) argument
/external/chromium_org/net/quic/
H A Diovector.h74 // Appends at most max_bytes from iovec to the IOVector.
77 size_t max_bytes) {
79 for (size_t i = 0; i < iovcnt && max_bytes > 0; ++i) {
80 const size_t length = std::min(max_bytes, iov[i].iov_len);
82 max_bytes -= length;
75 AppendIovecAtMostBytes(const struct iovec* iov, size_t iovcnt, size_t max_bytes) argument
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/
H A Dneteq_isac_quality_test.cc94 uint8_t* payload, int max_bytes);
130 uint8_t* payload, int max_bytes) {
128 EncodeBlock(int16_t* in_data, int block_size_samples, uint8_t* payload, int max_bytes) argument
H A Dneteq_opus_fec_quality_test.cc120 uint8_t* payload, int max_bytes);
165 uint8_t* payload, int max_bytes) {
167 block_size_samples, max_bytes,
163 EncodeBlock(int16_t* in_data, int block_size_samples, uint8_t* payload, int max_bytes) argument
/external/chromium_org/chrome/browser/sessions/
H A Dbase_session_service.cc30 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
32 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes, argument
35 if (*bytes_written + num_bytes < max_bytes) {
/external/chromium_org/components/sessions/
H A Dserialized_navigation_entry.cc161 // |pickle|, if and only if |str| fits within (|max_bytes| -
169 int max_bytes,
172 if (*bytes_written + num_bytes < max_bytes) {
185 int max_bytes,
188 if (*bytes_written + num_bytes < max_bytes) {
167 WriteStringToPickle(Pickle* pickle, int* bytes_written, int max_bytes, const std::string& str) argument
183 WriteString16ToPickle(Pickle* pickle, int* bytes_written, int max_bytes, const base::string16& str) argument
/external/chromium_org/net/disk_cache/memory/
H A Dmem_backend_impl.cc45 scoped_ptr<Backend> MemBackendImpl::CreateBackend(int max_bytes, argument
48 cache->SetMaxSize(max_bytes);
78 bool MemBackendImpl::SetMaxSize(int max_bytes) { argument
79 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
80 if (max_bytes < 0)
84 if (!max_bytes)
87 max_size_ = max_bytes;
/external/chromium_org/net/quic/congestion_control/
H A Dsend_algorithm_simulator.cc76 void SendAlgorithmSimulator::TransferBytes(QuicByteCount max_bytes, argument
84 bytes_sent < max_bytes) {
/external/chromium_org/third_party/libwebp/utils/
H A Dbit_writer.c212 const size_t max_bytes = bw->end_ - bw->buf_; local
220 if (max_bytes > 0 && size_required <= max_bytes) return 1;
221 allocated_size = (3 * max_bytes) >> 1;
/external/webp/src/utils/
H A Dbit_writer.c212 const size_t max_bytes = bw->end_ - bw->buf_; local
220 if (max_bytes > 0 && size_required <= max_bytes) return 1;
221 allocated_size = (3 * max_bytes) >> 1;
/external/chromium_org/net/disk_cache/simple/
H A Dsimple_index.cc188 bool SimpleIndex::SetMaxSize(int max_bytes) { argument
189 if (max_bytes < 0)
193 if (!max_bytes)
196 max_size_ = max_bytes;
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
336 h->max_bytes = 0;
344 h->max_bytes = 0;
455 if (h->max_bytes == 0) {
501 if (h->body_nbytes >= h->max_bytes)
703 * Pass max_bytes == 0 to not read body at all (required for e.g.
711 int max_bytes, /* maximum body size else abort it */
723 h->max_bytes = max_bytes;
706 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/wpa_supplicant_8/src/wps/
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
336 h->max_bytes = 0;
344 h->max_bytes = 0;
455 if (h->max_bytes == 0) {
501 if (h->body_nbytes >= h->max_bytes)
703 * Pass max_bytes == 0 to not read body at all (required for e.g.
711 int max_bytes, /* maximum body size else abort it */
723 h->max_bytes = max_bytes;
706 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
336 h->max_bytes = 0;
344 h->max_bytes = 0;
455 if (h->max_bytes == 0) {
501 if (h->body_nbytes >= h->max_bytes)
703 * Pass max_bytes == 0 to not read body at all (required for e.g.
711 int max_bytes, /* maximum body size else abort it */
723 h->max_bytes = max_bytes;
706 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/chromium_org/net/disk_cache/blockfile/
H A Ddisk_format_v3.h76 int32 max_bytes; // Total maximum size of the stored data. member in struct:disk_cache::IndexHeaderV3
H A Dbackend_impl_v3.cc93 bool BackendImplV3::SetMaxSize(int max_bytes) { argument
94 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
95 if (max_bytes < 0)
99 if (!max_bytes)
103 if (max_bytes >= kint32max - kint32max / 10)
104 max_bytes = kint32max - kint32max / 10 - 1;
107 max_size_ = max_bytes;
/external/qemu/hw/core/
H A Dloader.c515 size_t max_bytes; local
519 max_bytes = UBOOT_MAX_GUNZIP_BYTES;
520 data = g_malloc(max_bytes);
522 bytes = gunzip(data, max_bytes, compressed_data, hdr->ih_size);
/external/chromium_org/media/formats/webm/
H A Dwebm_parser.cc417 // |max_bytes| - The maximum number of bytes the field can be. ID fields
427 int max_bytes, bool mask_first_byte,
442 for (int i = 0; i < max_bytes; ++i) {
426 ParseWebMElementHeaderField(const uint8* buf, int size, int max_bytes, bool mask_first_byte, int64* num) argument

Completed in 697 milliseconds

12