Home
last modified time | relevance | path

Searched refs:amt (Results 1 – 25 of 69) sorted by relevance

123

/third_party/boost/boost/iostreams/detail/adapter/
Dnon_blocking_adapter.hpp31 std::streamsize amt = iostreams::read(device_, s + result, n - result); in read() local
32 if (amt == -1) in read()
34 result += amt; in read()
42 std::streamsize amt = in write() local
45 if (amt == -1) in write()
47 result += amt; in write()
/third_party/boost/boost/iostreams/filter/
Daggregate.hpp65 std::streamsize amt = in read() local
67 if (amt) { in read()
68 BOOST_IOSTREAMS_CHAR_TRAITS(char_type)::copy(s, &data_[ptr_], amt); in read()
69 ptr_ += amt; in read()
71 return detail::check_eof(amt); in read()
119 std::streamsize amt; in do_read() local
120 if ((amt = boost::iostreams::read(src, buf, size)) == -1) in do_read()
122 data.insert(data.end(), buf, buf + amt); in do_read()
Dgzip.hpp215 std::streamsize amt = base_type::read(src, s + result, n - result); in read() local
216 if (amt != -1) { in read()
217 result += amt; in read()
218 if (amt < n - result) { // Double-check for EOF. in read()
219 amt = base_type::read(src, s + result, n - result); in read()
220 if (amt != -1) in read()
221 result += amt; in read()
224 if (amt == -1) in read()
239 std::streamsize amt = in write() local
241 offset_ += boost::iostreams::write_if(snk, header_.data() + offset_, amt); in write()
[all …]
Dsymmetric.hpp206 std::streamsize amt = iostreams::read(src, buf().data(), buf().size()); in fill() local
207 if (amt == -1) { in fill()
211 buf().set(0, amt); in fill()
212 return amt != 0 ? f_good : f_would_block; in fill()
228 std::streamsize amt = in flush() local
231 boost::iostreams::write(snk, buf().data(), amt); in flush()
232 if (result < amt && result > 0) in flush()
233 traits_type::move(buf().data(), buf().data() + result, amt - result); in flush()
234 buf().set(amt - result, buf().size()); in flush()
Dtest.hpp101 streamsize amt = (std::min) (rand(inc_), avail); in read() local
102 if (amt) in read()
103 memcpy(s, data_.c_str() + pos_, static_cast<size_t>(amt)); in read()
104 pos_ += amt; in read()
105 return amt; in read()
129 std::streamsize amt = (std::min) (rand(inc_), n); in write() local
130 dest_.insert(dest_.end(), s, s + amt); in write()
131 return amt; in write()
Dline.hpp183 std::streamsize amt = static_cast<std::streamsize>(line.size()); in write_line() local
184 bool result = iostreams::write_if(snk, line.data(), amt) == amt; in write_line()
/third_party/boost/boost/iostreams/
Dcopy.hpp85 std::streamsize amt = in copy_impl() local
87 total += amt; in copy_impl()
105 std::streamsize amt = in copy_impl() local
113 if (amt == -1) in copy_impl()
115 std::copy(buf.data(), buf.data() + amt, p.first + total); in copy_impl()
116 total += amt; in copy_impl()
133 std::streamsize amt; in copy_impl() local
134 done = (amt = iostreams::read(src, buf.data(), buffer_size)) == -1; in copy_impl()
135 if (amt != -1) { in copy_impl()
136 iostreams::write(nb, buf.data(), amt); in copy_impl()
[all …]
Dread.hpp145 std::streamsize amt; in read() local
146 return (amt = t.sgetn(s, n)) != 0 ? in read()
147 amt : in read()
171 std::streamsize amt; in get() local
172 return (amt = t.read(&c, 1)) == 1 ? in get()
174 amt == -1 ? in get()
Dskip.hpp62 std::streamsize amt; in skip() local
63 if ((amt = iostreams::read(flt, dev, &c, 1)) == -1) in skip()
65 if (amt == 1) in skip()
Dcode_converter.hpp342 std::streamsize amt = in read() local
344 detail::strncpy_if_same(s + total, buf.ptr(), amt); in read()
345 total += amt; in read()
395 std::streamsize amt = in write() local
398 detail::strncpy_if_same(buf.eptr(), s + total, amt); in write()
399 total += amt; in write()
/third_party/boost/libs/iostreams/example/
Dcontainer_device.hpp37 std::streamsize amt = in read() local
39 std::streamsize result = (min)(n, amt); in read()
94 std::streamsize amt = in read() local
96 std::streamsize result = (min)(n, amt); in read()
112 std::streamsize amt = in write() local
114 result = (min)(n, amt); in write()
Ddictionary_filter.hpp171 std::streamsize amt = in write_current_word() local
174 iostreams::write(dest, current_word_.data() + off_, amt); in write_current_word()
175 if (result == amt) { in write_current_word()
/third_party/python/Lib/http/
Dclient.py450 def read(self, amt=None): argument
459 return self._read_chunked(amt)
461 if amt is not None:
462 if self.length is not None and amt > self.length:
464 amt = self.length
465 s = self.fp.read(amt)
466 if not s and amt:
577 def _read_chunked(self, amt=None): argument
586 if amt is not None and amt <= chunk_left:
587 value.append(self._safe_read(amt))
[all …]
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-blob/
Dminimal-secure-streams.c183 size_t amt; member
230 m->amt = 0; in myss_rx()
236 if ((m->amt + len) / 102400 != (m->amt / 102400)) { in myss_rx()
239 (unsigned int)((m->amt + len) / 1024)); in myss_rx()
248 m->amt += len; in myss_rx()
/third_party/openssl/crypto/ec/curve448/arch_32/
Df_impl.h39 void gf_bias(gf a, int amt) in gf_bias() argument
42 uint32_t co1 = ((1 << 28) - 1) * amt, co2 = co1 - amt; in gf_bias()
/third_party/musl/libc-test/src/functional/
Dtest-malloc-stats-common.h82 static int expect_equal(long long amt, long long value, const char *amt_name) in expect_equal() argument
84 if (amt == value) { in expect_equal()
87 t_error("Expected %s(value: %lld) to be %lld\n", amt_name, amt, value); in expect_equal()
/third_party/boost/boost/iostreams/detail/
Dbuffer.hpp130 std::streamsize amt = static_cast<std::streamsize>(eptr_ - ptr_); in flush() local
131 std::streamsize result = iostreams::write_if(dest, ptr_, amt); in flush()
132 if (result < amt) { in flush()
135 static_cast<size_t>(amt - result) ); in flush()
137 this->set(0, amt - result); in flush()
/third_party/node/deps/npm/node_modules/bcrypt-pbkdf/
Dindex.js503 i, j, amt, stride, dest, count,
513 amt = Math.floor((keylen + stride - 1) / stride);
538 amt = Math.min(amt, keylen);
539 for (i = 0; i < amt; i++) {
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
Daudio.c305 size_t amt, try; in callback_audio() local
313 try * 2, &amt); in callback_audio()
315 __func__, (int)amt, n); in callback_audio()
325 if (amt) { in callback_audio()
327 vhd->p, amt / 2); in callback_audio()
/third_party/boost/libs/iostreams/test/
Dread_nonblocking_test.cpp59 std::streamsize amt = boost::iostreams::read(nb, read_data, data_size_k); in nonblocking_read_test() local
61 BOOST_CHECK_EQUAL(amt, data_size_k); in nonblocking_read_test()
/third_party/openssl/crypto/ec/curve448/
Dfield.h108 static ossl_inline void gf_subx_nr(gf c, const gf a, const gf b, int amt) in gf_subx_nr() argument
111 gf_bias(c, amt); in gf_subx_nr()
112 if (GF_HEADROOM < amt + 1) in gf_subx_nr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrControl.td29 def RETIL : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops),
30 "ret{l}\t$amt", []>, OpSize32, Requires<[Not64BitMode]>;
31 def RETIQ : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops),
32 "ret{q}\t$amt", []>, OpSize32, Requires<[In64BitMode]>;
33 def RETIW : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt),
34 "ret{w}\t$amt", []>, OpSize16;
41 def LRETIL : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
42 "{l}ret{l|f}\t$amt", []>, OpSize32;
43 def LRETIQ : RIi16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
44 "{l}ret{|f}q\t$amt", []>, Requires<[In64BitMode]>;
[all …]
/third_party/cef/tools/yapf/yapf/yapflib/
Dsplit_penalty.py466 def _IncreasePenalty(node, amt): argument
478 _SetSplitPenalty(node, penalty + amt)
518 def _DecrementSplitPenalty(node, amt): argument
520 node, pytree_utils.Annotation.SPLIT_PENALTY, default=amt)
521 penalty = penalty - amt if amt < penalty else 0
/third_party/node/tools/configure.d/
Dnodedownload.py15 def formatSize(amt): argument
17 return "%.1f" % (amt / 1024000.)
/third_party/boost/libs/multiprecision/performance/
Ddelaunay_test.cpp53 inline int128_t operator<<(int128_t val, int amt) in operator <<() argument
56 r.low = val.low << amt; in operator <<()
57 r.high = val.low >> (64 - amt); in operator <<()
58 r.high |= val.high << amt; in operator <<()

123