Home
last modified time | relevance | path

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

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DCodedInputByteBufferNano.java478 public int pushLimit(int byteLimit) throws InvalidProtocolBufferNanoException { in pushLimit() argument
479 if (byteLimit < 0) { in pushLimit()
482 byteLimit += bufferPos; in pushLimit()
484 if (byteLimit > oldLimit) { in pushLimit()
487 currentLimit = byteLimit; in pushLimit()
/external/skia/src/core/
DSkResourceCache.cpp89 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() argument
91 fTotalByteLimit = byteLimit; in SkResourceCache()
193 size_t byteLimit; in purgeAsNeeded() local
198 byteLimit = SK_MaxU32; // no limit based on bytes in purgeAsNeeded()
201 byteLimit = fTotalByteLimit; in purgeAsNeeded()
206 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
DSkResourceCache.h208 explicit SkResourceCache(size_t byteLimit);
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java535 public int pushLimit(int byteLimit) throws InvalidProtocolBufferMicroException { in pushLimit() argument
536 if (byteLimit < 0) { in pushLimit()
539 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
541 if (byteLimit > oldLimit) { in pushLimit()
544 currentLimit = byteLimit; in pushLimit()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs930 internal int PushLimit(int byteLimit) in PushLimit() argument
932 if (byteLimit < 0) in PushLimit()
936 byteLimit += totalBytesRetired + bufferPos; in PushLimit()
938 if (byteLimit > oldLimit) in PushLimit()
942 currentLimit = byteLimit; in PushLimit()
/external/protobuf/objectivec/
DGPBCodedInputStream.m261 size_t byteLimit) {
262 byteLimit += state->bufferPos;
264 if (byteLimit > oldLimit) {
266 format:@"byteLimit > oldLimit: %tu > %tu", byteLimit, oldLimit];
268 state->currentLimit = byteLimit;
DGPBCodedInputStream_PackagePrivate.h106 size_t byteLimit);
/external/skia/tests/
DSkResourceCacheTest.cpp124 const size_t byteLimit = 100 * 1024; in DEF_TEST() local
126 SkResourceCache cache(byteLimit); in DEF_TEST()
130 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java978 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
979 if (byteLimit < 0) { in pushLimit()
982 byteLimit += totalBytesRetired + bufferPos; in pushLimit()
984 if (byteLimit > oldLimit) { in pushLimit()
987 currentLimit = byteLimit; in pushLimit()