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
170 // successfully and the stream's byte limit.
291 // limit.
296 typedef int Limit;
298 // Places a limit on the number of bytes that the stream may read,
299 // starting from the current position. Once the stream hits this limit,
304 // shortest limit on the stack is always enforced, even if it is not the
305 // top limit.
309 Limit PushLimit(int byte_limit);
311 // Pops the last limit pushed by PushLimit(). The input must be the value
313 void PopLimit(Limit limit);
315 // Returns the number of bytes left until the nearest limit on the
322 // Total Bytes Limit -----------------------------------------------
325 // imposes a hard limit on the total number of bytes it will read.
333 // cause integer overflows is 512MB. The default limit is 64MB. Apps
338 // An error will always be printed to stderr if the limit is reached.
348 // you will need to increase the limit. Chances are, though, that
349 // your code never constructs a CodedInputStream on which the limit
355 // you can adjust the limit. Yes, it's more work, but you're doing
359 // Recursion Limit -------------------------------------------------
366 void SetRecursionLimit(int limit);
370 // under the limit, false if it has gone over.
480 Limit current_limit_; // if position = -1, no limit is applied
482 // For simplicity, if the current buffer crosses a limit (either a normal
483 // limit created by PushLimit() or the total bytes limit), buffer_size_
484 // only tracks the number of bytes before that limit. This field
487 // hit a limit. However, if both are zero, it doesn't necessarily mean
488 // we aren't at a limit -- the buffer may have ended exactly at the limit.
495 // If positive/0: Limit for bytes read after which a warning due to size
498 // If -2: Internal: Limit has been reached, print full size when destructing.
504 // Recursion depth limit, set by SetRecursionLimit().
906 // If we are at a limit we know no more bytes can be read. Otherwise, it's
1050 inline void CodedInputStream::SetRecursionLimit(int limit) {
1051 recursion_limit_ = limit;