Home
last modified time | relevance | path

Searched refs:limit_ (Results 1 – 25 of 68) sorted by relevance

123

/external/ImageMagick/Magick++/lib/
DResourceLimits.cpp13 void Magick::ResourceLimits::area(const MagickSizeType limit_) in area() argument
15 (void) SetMagickResourceLimit(AreaResource,limit_); in area()
23 void Magick::ResourceLimits::disk(const MagickSizeType limit_) in disk() argument
25 (void) SetMagickResourceLimit(DiskResource,limit_); in disk()
33 void Magick::ResourceLimits::file(const MagickSizeType limit_) in file() argument
35 (void) SetMagickResourceLimit(FileResource,limit_); in file()
43 void Magick::ResourceLimits::height(const MagickSizeType limit_) in height() argument
45 (void) SetMagickResourceLimit(HeightResource,limit_); in height()
53 void Magick::ResourceLimits::listLength(const MagickSizeType limit_) in listLength() argument
55 (void) SetMagickResourceLimit(ListLengthResource,limit_); in listLength()
[all …]
/external/ImageMagick/Magick++/lib/Magick++/
DResourceLimits.h21 static void area(const MagickSizeType limit_);
26 static void disk(const MagickSizeType limit_);
34 static void file(const MagickSizeType limit_);
38 static void height(const MagickSizeType limit_);
42 static void listLength(const MagickSizeType limit_);
47 static void map(const MagickSizeType limit_);
53 static void memory(const MagickSizeType limit_);
57 static void thread(const MagickSizeType limit_);
62 static void throttle(const MagickSizeType limit_);
66 static void width(const MagickSizeType limit_);
/external/tensorflow/tensorflow/core/lib/io/
Dbuffered_inputstream.cc46 limit_ = 0; in FillBuffer()
51 limit_ = buf_.size(); in FillBuffer()
64 if (pos_ == limit_) { in ReadLineHelper()
67 if (limit_ == 0) { in ReadLineHelper()
95 if (pos_ == limit_ && !file_status_.ok() && bytes_to_read > 0) { in ReadNBytes()
103 if (pos_ == limit_) { in ReadNBytes()
106 if (limit_ == 0) { in ReadNBytes()
113 std::min<int64>(limit_ - pos_, bytes_to_read - result->size()); in ReadNBytes()
132 if (pos_ + bytes_to_skip < limit_) { in SkipNBytes()
139 Status s = input_stream_->SkipNBytes(bytes_to_skip - (limit_ - pos_)); in SkipNBytes()
[all …]
Dinputbuffer.cc30 limit_(buf_) {} in InputBuffer()
41 limit_ = pos_ + data.size(); in FillBuffer()
51 size_t buf_remain = limit_ - pos_; in ReadLine()
66 } while (limit_ != buf_); in ReadLine()
101 if (pos_ == limit_) { in ReadNBytes()
104 if (limit_ == buf_) { in ReadNBytes()
110 std::min<int64>(limit_ - pos_, bytes_to_read - *bytes_read); in ReadNBytes()
163 if (pos_ == limit_) { in SkipNBytes()
166 if (limit_ == buf_) { in SkipNBytes()
171 std::min<int64>(limit_ - pos_, bytes_to_skip - bytes_skipped); in SkipNBytes()
[all …]
Dinputbuffer.h82 int64 Tell() const { return file_pos_ - (limit_ - pos_); } in Tell()
108 char* limit_; // Just past end of valid data in "buf" variable
121 if (pos_ + core::kMaxVarint32Bytes <= limit_) { in ReadVarint32()
124 const char* offset = core::GetVarint32Ptr(pos_, limit_, result); in ReadVarint32()
135 if (pos_ + core::kMaxVarint64Bytes <= limit_) { in ReadVarint64()
138 const char* offset = core::GetVarint64Ptr(pos_, limit_, result); in ReadVarint64()
Dproto_encode_helper.h34 : base_(buf), p_(buf), limit_(base_ + max_size) {} in ProtoEncodeHelper()
38 DCHECK_LE(p_, limit_); in ~ProtoEncodeHelper()
94 char* limit_; // Just for CHECKs variable
/external/rust/crates/futures-util/src/io/
Dtake.rs18 limit_: u64,
24 Self { inner, limit_: limit } in new()
51 self.limit_ in limit()
81 self.limit_ = limit in set_limit()
95 if *this.limit_ == 0 { in poll_read()
99 let max = cmp::min(buf.len() as u64, *this.limit_) as usize; in poll_read()
101 *this.limit_ -= n as u64; in poll_read()
116 if *this.limit_ == 0 { in poll_fill_buf()
121 let cap = cmp::min(buf.len() as u64, *this.limit_) as usize; in poll_fill_buf()
129 let amt = cmp::min(amt as u64, *this.limit_) as usize; in consume()
[all …]
/external/rust/crates/tokio/src/io/util/
Dtake.rs17 limit_: u64,
24 limit_: limit, in take()
37 self.limit_ in limit()
45 self.limit_ = limit in set_limit()
83 if self.limit_ == 0 { in poll_read()
88 let mut b = buf.take(*me.limit_ as usize); in poll_read()
97 *me.limit_ -= n as u64; in poll_read()
107 if *me.limit_ == 0 { in poll_fill_buf()
112 let cap = cmp::min(buf.len() as u64, *me.limit_) as usize; in poll_fill_buf()
119 let amt = cmp::min(amt as u64, *me.limit_) as usize; in consume()
[all …]
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc383 : input_(input), limit_(limit) { in LimitingInputStream()
389 if (limit_ < 0) input_->BackUp(-limit_); in ~LimitingInputStream()
393 if (limit_ <= 0) return false; in Next()
396 limit_ -= *size; in Next()
397 if (limit_ < 0) { in Next()
399 *size += limit_; in Next()
405 if (limit_ < 0) { in BackUp()
406 input_->BackUp(count - limit_); in BackUp()
407 limit_ = count; in BackUp()
410 limit_ += count; in BackUp()
[all …]
/external/llvm-project/flang/include/flang/Parser/
Dparse-state.h39 : p_{cooked.AsCharBlock().begin()}, limit_{cooked.AsCharBlock().end()} {} in ParseState()
41 : p_{that.p_}, limit_{that.limit_}, context_{that.context_}, in ParseState()
49 : p_{that.p_}, limit_{that.limit_}, messages_{std::move(that.messages_)}, in ParseState()
58 p_ = that.p_, limit_ = that.limit_, context_ = that.context_;
68 p_ = that.p_, limit_ = that.limit_, messages_ = std::move(that.messages_);
167 bool IsAtEnd() const { return p_ >= limit_; } in IsAtEnd()
176 if (p_ < limit_) { in GetNextChar()
184 if (p_ < limit_) { in PeekAtNextChar()
192 std::size_t remain = limit_ - p_; in BytesRemaining()
213 const char *p_{nullptr}, *limit_{nullptr};
/external/tensorflow/tensorflow/core/kernels/
Dcount_up_to_op.cc29 OP_REQUIRES_OK(context, context->GetAttr("limit", &limit_)); in CountUpToOp()
42 if (*ptr >= limit_) { in Compute()
43 context->SetStatus(errors::OutOfRange("Reached limit of ", limit_)); in Compute()
56 T limit_; member in tensorflow::CountUpToOp
64 OP_REQUIRES_OK(context, context->GetAttr("limit", &limit_)); in ResourceCountUpToOp()
78 if (before_increment.scalar<T>()() >= limit_) { in Compute()
79 context->SetStatus(errors::OutOfRange("Reached limit of ", limit_)); in Compute()
96 T limit_; member in tensorflow::ResourceCountUpToOp
/external/protobuf/src/google/protobuf/stubs/
Dbytestream.cc163 limit_(limit) { in LimitByteSource()
168 if (available > limit_) { in Available()
169 available = limit_; in Available()
177 if (piece.size() > limit_) { in Peek()
178 piece.set(piece.data(), limit_); in Peek()
185 GOOGLE_DCHECK_LE(n, limit_); in Skip()
187 limit_ -= n; in Skip()
191 GOOGLE_DCHECK_LE(n, limit_); in CopyTo()
193 limit_ -= n; in CopyTo()
/external/libvpx/libvpx/test/
Dyuv_video_source.h31 limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
61 virtual vpx_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
75 virtual unsigned int limit() const { return limit_; } in limit()
104 limit_ = frame_; in FillFrame()
114 unsigned int limit_; variable
Dy4m_video_source.h27 start_(start), limit_(limit), frame_(0), framerate_numerator_(0), in Y4mVideoSource()
65 return (frame_ < limit_) ? img_.get() : NULL; in img()
80 virtual unsigned int limit() const { return limit_; } in limit()
114 unsigned int limit_; variable
Dvideo_source.h136 : img_(NULL), limit_(100), width_(80), height_(64), in DummyVideoSource()
153 virtual vpx_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
167 virtual unsigned int limit() const { return limit_; } in limit()
169 void set_limit(unsigned int limit) { limit_ = limit; } in set_limit()
199 unsigned int limit_; variable
/external/libaom/libaom/test/
Dyuv_video_source.h32 limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
61 virtual aom_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
75 virtual unsigned int limit() const { return limit_; } in limit()
102 limit_ = frame_; in FillFrame()
112 unsigned int limit_; variable
Dy4m_video_source.h28 start_(start), limit_(limit), frame_(0), framerate_numerator_(0), in Y4mVideoSource()
67 return (frame_ < limit_) ? img_.get() : NULL; in img()
82 virtual unsigned int limit() const { return limit_; } in limit()
116 unsigned int limit_; variable
Dvideo_source.h138 : img_(NULL), limit_(100), width_(80), height_(64), in DummyVideoSource()
155 virtual aom_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
169 virtual unsigned int limit() const { return limit_; } in limit()
171 void set_limit(unsigned int limit) { limit_ = limit; } in set_limit()
201 unsigned int limit_; variable
/external/tensorflow/tensorflow/core/lib/gtl/
Dtop_n.h93 TopN(size_t limit, const Cmp &cmp) : limit_(limit), cmp_(cmp) {} in TopN()
95 size_t limit() const { return limit_; } in limit()
99 size_t size() const { return std::min(elements_.size(), limit_); } in size()
106 void reserve(size_t n) { elements_.reserve(std::min(n, limit_ + 1)); } in reserve()
200 size_t limit_; // Maximum number of elements to find variable
211 if (limit_ == 0) { in PushInternal()
228 if (elements_.size() == limit_ + 1) { in PushInternal()
/external/tensorflow/tensorflow/lite/experimental/kernels/
Dtop_n.h95 TopN(size_t limit, const Cmp &cmp) : limit_(limit), cmp_(cmp) {} in TopN()
97 size_t limit() const { return limit_; } in limit()
101 size_t size() const { return std::min(elements_.size(), limit_); } in size()
108 void reserve(size_t n) { elements_.reserve(std::min(n, limit_ + 1)); } in reserve()
202 size_t limit_; // Maximum number of elements to find variable
213 if (limit_ == 0) { in PushInternal()
230 if (elements_.size() == limit_ + 1) { in PushInternal()
/external/protobuf/src/google/protobuf/
Dparse_context.cc164 if (PROTOBUF_PREDICT_FALSE(overrun > limit_)) return {nullptr, true}; in DoneFallback()
165 GOOGLE_DCHECK(overrun != limit_); // Guaranteed by caller. in DoneFallback()
166 GOOGLE_DCHECK(overrun < limit_); // Follows from above in DoneFallback()
171 GOOGLE_DCHECK(limit_end_ == buffer_end_ + (std::min)(0, limit_)); in DoneFallback()
173 GOOGLE_DCHECK(limit_ > 0); in DoneFallback()
182 GOOGLE_DCHECK(limit_ > 0); in DoneFallback()
188 limit_ -= buffer_end_ - p; // Adjust limit_ relative to new anchor in DoneFallback()
192 limit_end_ = buffer_end_ + std::min(0, limit_); in DoneFallback()
205 if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { in ReadStringFallback()
215 if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) { in AppendStringFallback()
[all …]
Dparse_context.h130 auto old_limit = limit_; in PushLimit()
131 limit_ = limit; in PushLimit()
137 limit_ = limit_ + delta; in PopLimit()
140 limit_end_ = buffer_end_ + (std::min)(0, limit_); in PopLimit()
192 (next_chunk_ == nullptr || ptr - buffer_end_ > limit_); in IsExceedingLimit()
206 if ((*ptr - buffer_end_) == limit_) return true; in DoneWithCheck()
215 limit_ = kSlopBytes; in InitFrom()
222 limit_ = 0; in InitFrom()
238 limit_ = limit - static_cast<int>(buffer_end_ - res); in InitFrom()
239 limit_end_ = buffer_end_ + (std::min)(0, limit_); in InitFrom()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Drange_test.cc33 limit_ = AddInput(dtype); in RangeOpModel()
38 BuildInterpreter({GetShape(start_), GetShape(limit_), GetShape(delta_)}); in RangeOpModel()
42 int limit() { return limit_; } in limit()
50 int limit_; member in tflite::__anon37f30bfc0111::RangeOpModel
/external/vixl/src/
Dcode-generation-scopes-vixl.h96 limit_ = assembler_->GetSizeOfCodeGenerated() + size;
118 VIXL_ASSERT(assembler_->GetSizeOfCodeGenerated() == limit_); in Close()
121 VIXL_ASSERT(assembler_->GetSizeOfCodeGenerated() <= limit_); in Close()
133 size_t limit_; variable
/external/perfetto/src/traced/probes/filesystem/
Dprefix_finder.cc47 PrefixFinder::PrefixFinder(size_t limit) : limit_(limit) {} in PrefixFinder()
63 if (state_[j - 1].second > limit_ && state_[j].second <= limit_) { in Flush()

123