Home
last modified time | relevance | path

Searched refs:byteLimit (Results 1 – 9 of 9) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/
DSegmentedBufferHelper.cs113 public static int PushLimit(ref ParserInternalState state, int byteLimit) in PushLimit()
115 if (byteLimit < 0) in PushLimit()
119 byteLimit += state.totalBytesRetired + state.bufferPos; in PushLimit()
121 if (byteLimit > oldLimit) in PushLimit()
125 state.currentLimit = byteLimit; in PushLimit()
DCodedInputStream.cs614 internal int PushLimit(int byteLimit) in PushLimit() argument
616 return SegmentedBufferHelper.PushLimit(ref state, byteLimit); in PushLimit()
/third_party/skia/src/core/
DSkResourceCache.cpp100 SkResourceCache::SkResourceCache(size_t byteLimit) in SkResourceCache() argument
103 fTotalByteLimit = byteLimit; in SkResourceCache()
205 size_t byteLimit; in purgeAsNeeded() local
210 byteLimit = UINT32_MAX; // no limit based on bytes in purgeAsNeeded()
213 byteLimit = fTotalByteLimit; in purgeAsNeeded()
218 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
DSkResourceCache.h208 explicit SkResourceCache(size_t byteLimit);
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java468 public abstract int pushLimit(int byteLimit) throws InvalidProtocolBufferException; in pushLimit() argument
1182 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1183 if (byteLimit < 0) { in pushLimit()
1186 byteLimit += getTotalBytesRead(); in pushLimit()
1188 if (byteLimit > oldLimit) { in pushLimit()
1191 currentLimit = byteLimit; in pushLimit()
1905 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1906 if (byteLimit < 0) { in pushLimit()
1909 byteLimit += getTotalBytesRead(); in pushLimit()
1911 if (byteLimit > oldLimit) { in pushLimit()
[all …]
/third_party/protobuf/objectivec/
DGPBCodedInputStream.m278 size_t byteLimit) {
279 byteLimit += state->bufferPos;
281 if (byteLimit > oldLimit) {
284 state->currentLimit = byteLimit;
391 - (size_t)pushLimit:(size_t)byteLimit {
392 return GPBCodedInputStreamPushLimit(&state_, byteLimit);
DGPBCodedInputStream.h231 - (size_t)pushLimit:(size_t)byteLimit;
DGPBCodedInputStream_PackagePrivate.h104 size_t byteLimit);
/third_party/skia/tests/
DSkResourceCacheTest.cpp128 const size_t byteLimit = 100 * 1024; in DEF_TEST() local
130 SkResourceCache cache(byteLimit); in DEF_TEST()
134 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()