Home
last modified time | relevance | path

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

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/util/
DParsableNalUnitBitArray.java28 private int byteLimit; field in ParsableNalUnitBitArray
54 byteLimit = limit; in reset()
108 for (int i = oldByteOffset + 1; i <= newByteOffset && newByteOffset < byteLimit; i++) { in canReadBits()
115 return newByteOffset < byteLimit || (newByteOffset == byteLimit && newBitOffset == 0); in canReadBits()
163 while (byteOffset < byteLimit && !readBit()) { in canReadExpGolombCodedNum()
166 boolean hitLimit = byteOffset == byteLimit; in canReadExpGolombCodedNum()
201 && offset < byteLimit in shouldSkipByte()
210 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/util/
DParsableNalUnitBitArray.java28 private int byteLimit; field in ParsableNalUnitBitArray
54 byteLimit = limit; in reset()
108 for (int i = oldByteOffset + 1; i <= newByteOffset && newByteOffset < byteLimit; i++) { in canReadBits()
115 return newByteOffset < byteLimit || (newByteOffset == byteLimit && newBitOffset == 0); in canReadBits()
163 while (byteOffset < byteLimit && !readBit()) { in canReadExpGolombCodedNum()
166 boolean hitLimit = byteOffset == byteLimit; in canReadExpGolombCodedNum()
201 && offset < byteLimit in shouldSkipByte()
210 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DVorbisBitArray.java31 private final int byteLimit; field in VorbisBitArray
43 byteLimit = data.length; in VorbisBitArray()
116 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
122 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DVorbisBitArray.java31 private final int byteLimit; field in VorbisBitArray
43 byteLimit = data.length; in VorbisBitArray()
116 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
122 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DParsableBitArray.java32 private int byteLimit; field in ParsableBitArray
56 byteLimit = limit; in ParsableBitArray()
89 byteLimit = limit; in reset()
94 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
342 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DParsableBitArray.java32 private int byteLimit; field in ParsableBitArray
56 byteLimit = limit; in ParsableBitArray()
89 byteLimit = limit; in reset()
94 return (byteLimit - byteOffset) * 8 - bitOffset; in bitsLeft()
342 byteOffset >= 0 && (byteOffset < byteLimit || (byteOffset == byteLimit && bitOffset == 0))); in assertValidOffset()
/external/cronet/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.cs613 internal int PushLimit(int byteLimit) in PushLimit() argument
615 return SegmentedBufferHelper.PushLimit(ref state, byteLimit); in PushLimit()
/external/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.cs613 internal int PushLimit(int byteLimit) in PushLimit() argument
615 return SegmentedBufferHelper.PushLimit(ref state, byteLimit); in PushLimit()
/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/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/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java474 public abstract int pushLimit(int byteLimit) throws InvalidProtocolBufferException; in pushLimit() argument
1186 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1187 if (byteLimit < 0) { in pushLimit()
1190 byteLimit += getTotalBytesRead(); in pushLimit()
1191 if (byteLimit < 0) { in pushLimit()
1195 if (byteLimit > oldLimit) { in pushLimit()
1198 currentLimit = byteLimit; in pushLimit()
1910 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1911 if (byteLimit < 0) { in pushLimit()
1914 byteLimit += getTotalBytesRead(); in pushLimit()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java474 public abstract int pushLimit(int byteLimit) throws InvalidProtocolBufferException; in pushLimit() argument
1186 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1187 if (byteLimit < 0) { in pushLimit()
1190 byteLimit += getTotalBytesRead(); in pushLimit()
1191 if (byteLimit < 0) { in pushLimit()
1195 if (byteLimit > oldLimit) { in pushLimit()
1198 currentLimit = byteLimit; in pushLimit()
1910 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument
1911 if (byteLimit < 0) { in pushLimit()
1914 byteLimit += getTotalBytesRead(); in pushLimit()
[all …]
/external/cronet/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);
/external/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);
/external/skia/tests/
DSkResourceCacheTest.cpp141 const size_t byteLimit = 100 * 1024; in DEF_TEST() local
143 SkResourceCache cache(byteLimit); in DEF_TEST()
147 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()
/external/cronet/third_party/protobuf/
DCHANGES.txt515 * Detect invalid overflow of byteLimit and return InvalidProtocolBufferException as documented.
/external/protobuf/
DCHANGES.txt700 * Detect invalid overflow of byteLimit and return InvalidProtocolBufferException as documented.