Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DParsableNalUnitBitArray.java27 private int byteLimit; field in ParsableNalUnitBitArray
53 byteLimit = limit; in reset()
109 for (int i = oldByteOffset + 1; i <= newByteOffset && newByteOffset < byteLimit; i++) { in canReadBits()
116 return newByteOffset < byteLimit || (newByteOffset == byteLimit && newBitOffset == 0); in canReadBits()
164 while (byteOffset < byteLimit && !readBit()) { in canReadExpGolombCodedNum()
167 boolean hitLimit = byteOffset == byteLimit; in canReadExpGolombCodedNum()
201 return 2 <= offset && offset < byteLimit && data[offset] == (byte) 0x03 in shouldSkipByte()
208 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
DParsableBitArray.java32 private int byteLimit; field in ParsableBitArray
56 byteLimit = limit; in ParsableBitArray()
89 byteLimit = limit; in reset()
96 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
348 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DVorbisBitArray.java29 private final int byteLimit; field in VorbisBitArray
41 byteLimit = data.length; in VorbisBitArray()
120 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
126 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/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/skqp/src/core/
DSkResourceCache.cpp98 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() argument
100 fTotalByteLimit = byteLimit; in SkResourceCache()
202 size_t byteLimit; in purgeAsNeeded() local
207 byteLimit = UINT32_MAX; // no limit based on bytes in purgeAsNeeded()
210 byteLimit = fTotalByteLimit; in purgeAsNeeded()
215 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
DSkResourceCache.h207 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/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);
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java468 public abstract int pushLimit(int byteLimit) throws InvalidProtocolBufferException; in pushLimit() argument
1180 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1181 if (byteLimit < 0) { in pushLimit()
1184 byteLimit += getTotalBytesRead(); in pushLimit()
1186 if (byteLimit > oldLimit) { in pushLimit()
1189 currentLimit = byteLimit; in pushLimit()
1903 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1904 if (byteLimit < 0) { in pushLimit()
1907 byteLimit += getTotalBytesRead(); in pushLimit()
1909 if (byteLimit > oldLimit) { in pushLimit()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs960 internal int PushLimit(int byteLimit) in PushLimit() argument
962 if (byteLimit < 0) in PushLimit()
966 byteLimit += totalBytesRetired + bufferPos; in PushLimit()
968 if (byteLimit > oldLimit) in PushLimit()
972 currentLimit = byteLimit; in PushLimit()
/external/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()
/external/skqp/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()
/external/protobuf/objectivec/
DGPBCodedInputStream.m270 size_t byteLimit) {
271 byteLimit += state->bufferPos;
273 if (byteLimit > oldLimit) {
276 state->currentLimit = byteLimit;
383 - (size_t)pushLimit:(size_t)byteLimit {
384 return GPBCodedInputStreamPushLimit(&state_, byteLimit);
DGPBCodedInputStream.h231 - (size_t)pushLimit:(size_t)byteLimit;
DGPBCodedInputStream_PackagePrivate.h104 size_t byteLimit);