Home | History | Annotate | Download | only in io

Lines Matching refs:Limit

106 // However, for practicality we set a limit at 64 bits.  The maximum encoded
173 // successfully and the stream's byte limit.
309 // limit.
314 typedef int Limit;
316 // Places a limit on the number of bytes that the stream may read,
317 // starting from the current position. Once the stream hits this limit,
322 // shortest limit on the stack is always enforced, even if it is not the
323 // top limit.
327 Limit PushLimit(int byte_limit);
329 // Pops the last limit pushed by PushLimit(). The input must be the value
331 void PopLimit(Limit limit);
333 // Returns the number of bytes left until the nearest limit on the
340 // Total Bytes Limit -----------------------------------------------
343 // imposes a hard limit on the total number of bytes it will read.
351 // cause integer overflows is 512MB. The default limit is 64MB. Apps
356 // An error will always be printed to stderr if the limit is reached.
366 // you will need to increase the limit. Chances are, though, that
367 // your code never constructs a CodedInputStream on which the limit
373 // you can adjust the limit. Yes, it's more work, but you're doing
377 // The Total Bytes Limit minus the Current Position, or -1 if there
378 // is no Total Bytes Limit.
381 // Recursion Limit -------------------------------------------------
388 void SetRecursionLimit(int limit);
392 // under the limit, false if it has gone over.
408 std::pair<CodedInputStream::Limit, int> IncrementRecursionDepthAndPushLimit(
412 Limit ReadLengthAndPushLimit();
416 // PopLimit(limit);
421 bool DecrementRecursionDepthAndPopLimit(Limit limit);
425 // PopLimit(limit);
428 bool CheckEntireMessageConsumedAndPopLimit(Limit limit);
534 Limit current_limit_; // if position = -1, no limit is applied
536 // For simplicity, if the current buffer crosses a limit (either a normal
537 // limit created by PushLimit() or the total bytes limit), buffer_size_
538 // only tracks the number of bytes before that limit. This field
541 // hit a limit. However, if both are zero, it doesn't necessarily mean
542 // we aren't at a limit -- the buffer may have ended exactly at the limit.
549 // If positive/0: Limit for bytes read after which a warning due to size
552 // If -2: Internal: Limit has been reached, print full size when destructing.
559 // Recursion depth limit, set by SetRecursionLimit().
1044 // If we are at a limit we know no more bytes can be read. Otherwise, it's
1202 inline void CodedInputStream::SetRecursionLimit(int limit) {
1203 recursion_budget_ += limit - recursion_limit_;
1204 recursion_limit_ = limit;