/external/zstd/tests/ |
D | seqgen.c | 60 stream->bytesLeft = 1; in SEQ_gen_matchLength() 70 stream->bytesLeft = value + 1; in SEQ_gen_matchLength() 74 size_t const setLength = MIN(stream->bytesLeft, (size_t)(oend - op)); in SEQ_gen_matchLength() 78 stream->bytesLeft -= setLength; in SEQ_gen_matchLength() 80 if (stream->bytesLeft > 0) in SEQ_gen_matchLength() 89 stream->bytesLeft = 1; in SEQ_gen_matchLength() 100 stream->bytesLeft = 0; in SEQ_gen_matchLength() 105 return stream->bytesLeft; in SEQ_gen_matchLength() 129 stream->bytesLeft = MIN(kMatchBytes, value); in SEQ_gen_litLength() 132 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength() [all …]
|
/external/okio/samples/src/jvmMain/java/okio/samples/ |
D | Randoms.java | 35 private long bytesLeft; field in Randoms.RandomSource 37 RandomSource(Random random, long bytesLeft) { in RandomSource() argument 39 this.bytesLeft = bytesLeft; in RandomSource() 43 if (bytesLeft == -1L) throw new IllegalStateException("closed"); in read() 44 if (bytesLeft == 0L) return -1L; in read() 46 if (byteCount > bytesLeft) byteCount = bytesLeft; in read() 64 bytesLeft -= byteCount; in read() 73 bytesLeft = -1L; in close()
|
/external/oboe/src/common/ |
D | FixedBlockWriter.cpp | 39 int32_t bytesLeft = numBytes; in write() local 43 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in write() 45 bytesLeft -= bytesWritten; in write() 59 while(bytesLeft > mSize) { in write() 63 bytesLeft -= bytesWritten; in write() 67 if (bytesLeft > 0) { in write() 68 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in write() 69 bytesLeft -= bytesWritten; in write() 72 return numBytes - bytesLeft; in write()
|
D | FixedBlockReader.cpp | 50 int32_t bytesLeft = numBytes; in read() local 51 while(bytesLeft > 0) { in read() 54 bytesRead = readFromStorage(buffer, bytesLeft); in read() 56 bytesLeft -= bytesRead; in read() 57 } else if (bytesLeft >= mSize) { in read() 62 bytesLeft -= bytesRead; in read() 72 return numBytes - bytesLeft; in read()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | LimitedInputStream.cs | 46 private int bytesLeft; field in Google.Protobuf.LimitedInputStream 51 bytesLeft = size; in LimitedInputStream() 86 if (bytesLeft > 0) in Read() 88 int bytesRead = proxied.Read(buffer, offset, Math.Min(bytesLeft, count)); in Read() 89 bytesLeft -= bytesRead; in Read()
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | LimitedInputStream.cs | 46 private int bytesLeft; field in Google.Protobuf.LimitedInputStream 51 bytesLeft = size; in LimitedInputStream() 86 if (bytesLeft > 0) in Read() 88 int bytesRead = proxied.Read(buffer, offset, Math.Min(bytesLeft, count)); in Read() 89 bytesLeft -= bytesRead; in Read()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLEvpCipher.java | 120 final int bytesLeft = output.length - outputOffset; in updateInternal() local 121 if (bytesLeft < maximumLen) { in updateInternal() 123 "output buffer too small during update: " + bytesLeft + " < " + maximumLen); in updateInternal() 149 final int bytesLeft = output.length - outputOffset; in doFinalInternal() local 151 if (bytesLeft >= maximumLen) { in doFinalInternal() 156 if (writtenBytes > bytesLeft) { in doFinalInternal() 158 "buffer is too short: " + writtenBytes + " > " + bytesLeft); in doFinalInternal()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLEvpCipher.java | 116 final int bytesLeft = output.length - outputOffset; in updateInternal() local 117 if (bytesLeft < maximumLen) { in updateInternal() 119 + bytesLeft + " < " + maximumLen); in updateInternal() 145 final int bytesLeft = output.length - outputOffset; in doFinalInternal() local 147 if (bytesLeft >= maximumLen) { in doFinalInternal() 152 if (writtenBytes > bytesLeft) { in doFinalInternal() 154 + bytesLeft); in doFinalInternal()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/ |
D | PsBinarySearchSeeker.java | 96 while (packetBuffer.bytesLeft() >= 4) { in searchForScrValueInBuffer() 147 if (packetBuffer.bytesLeft() < 10) { in skipToEndOfCurrentPack() 156 if (packetBuffer.bytesLeft() < packStuffingLength) { in skipToEndOfCurrentPack() 162 if (packetBuffer.bytesLeft() < 4) { in skipToEndOfCurrentPack() 171 if (packetBuffer.bytesLeft() < systemHeaderLength) { in skipToEndOfCurrentPack() 182 while (packetBuffer.bytesLeft() >= 4) { in skipToEndOfCurrentPack() 193 if (packetBuffer.bytesLeft() < 2) { in skipToEndOfCurrentPack()
|
D | DtsReader.java | 98 while (data.bytesLeft() > 0) { in consume() 114 int bytesToRead = min(data.bytesLeft(), sampleSize - bytesRead); in consume() 146 int bytesToRead = min(source.bytesLeft(), targetLength - bytesRead); in continueRead() 160 while (pesBuffer.bytesLeft() > 0) { in skipToNextSync()
|
D | PesReader.java | 116 while (data.bytesLeft() > 0) { in consume() 119 data.skipBytes(data.bytesLeft()); in consume() 138 readLength = data.bytesLeft(); in consume() 175 int bytesToRead = min(source.bytesLeft(), targetLength - bytesRead); in continueRead()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/ |
D | PsBinarySearchSeeker.java | 96 while (packetBuffer.bytesLeft() >= 4) { in searchForScrValueInBuffer() 147 if (packetBuffer.bytesLeft() < 10) { in skipToEndOfCurrentPack() 156 if (packetBuffer.bytesLeft() < packStuffingLength) { in skipToEndOfCurrentPack() 162 if (packetBuffer.bytesLeft() < 4) { in skipToEndOfCurrentPack() 171 if (packetBuffer.bytesLeft() < systemHeaderLength) { in skipToEndOfCurrentPack() 182 while (packetBuffer.bytesLeft() >= 4) { in skipToEndOfCurrentPack() 193 if (packetBuffer.bytesLeft() < 2) { in skipToEndOfCurrentPack()
|
D | DtsReader.java | 98 while (data.bytesLeft() > 0) { in consume() 114 int bytesToRead = min(data.bytesLeft(), sampleSize - bytesRead); in consume() 146 int bytesToRead = min(source.bytesLeft(), targetLength - bytesRead); in continueRead() 160 while (pesBuffer.bytesLeft() > 0) { in skipToNextSync()
|
/external/sonivox/arm-wt-22k/misc/ |
D | eas_host.c | 311 EAS_I32 bytesLeft = n; in EAS_HWReadFile() local 324 for (;bytesLeft > 0;) in EAS_HWReadFile() 328 if (temp > bytesLeft) in EAS_HWReadFile() 329 temp = bytesLeft; in EAS_HWReadFile() 336 bytesLeft -= temp; in EAS_HWReadFile() 340 if ((bytesLeft == 0) || (bytesLeft >= EAS_FILE_BUFFER_SIZE)) in EAS_HWReadFile() 349 if (bytesLeft) in EAS_HWReadFile() 358 temp = (EAS_I32) fread(p, 1, (size_t) bytesLeft, file->pFile); in EAS_HWReadFile()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/ |
D | WavExtractor.java | 230 long bytesLeft = dataEndPosition - input.getPosition(); in readSampleData() local 231 return Assertions.checkNotNull(outputWriter).sampleData(input, bytesLeft) in readSampleData() 268 boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException; in sampleData() argument 343 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() argument 345 while (bytesLeft > 0 && pendingOutputBytes < targetSampleSizeBytes) { in sampleData() 346 int bytesToRead = (int) min(targetSampleSizeBytes - pendingOutputBytes, bytesLeft); in sampleData() 349 bytesLeft = 0; in sampleData() 352 bytesLeft -= bytesAppended; in sampleData() 374 return bytesLeft <= 0; in sampleData() 490 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() argument [all …]
|
D | WavHeaderReader.java | 110 int bytesLeft = (int) chunkHeader.size - 16; in readFormat() local 112 if (bytesLeft > 0) { in readFormat() 113 extraData = new byte[bytesLeft]; in readFormat() 114 input.peekFully(extraData, 0, bytesLeft); in readFormat()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/ |
D | WavExtractor.java | 231 long bytesLeft = dataEndPosition - input.getPosition(); in readSampleData() local 232 return Assertions.checkNotNull(outputWriter).sampleData(input, bytesLeft) in readSampleData() 269 boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException; in sampleData() argument 344 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() argument 346 while (bytesLeft > 0 && pendingOutputBytes < targetSampleSizeBytes) { in sampleData() 347 int bytesToRead = (int) min(targetSampleSizeBytes - pendingOutputBytes, bytesLeft); in sampleData() 350 bytesLeft = 0; in sampleData() 353 bytesLeft -= bytesAppended; in sampleData() 375 return bytesLeft <= 0; in sampleData() 491 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() argument [all …]
|
D | WavHeaderReader.java | 110 int bytesLeft = (int) chunkHeader.size - 16; in readFormat() local 112 if (bytesLeft > 0) { in readFormat() 113 extraData = new byte[bytesLeft]; in readFormat() 114 input.peekFully(extraData, 0, bytesLeft); in readFormat()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/ |
D | FlacExtractor.java | 273 } else if (buffer.bytesLeft() == 0) { in readFrames() 284 buffer.skipBytes(min(minFrameSize - currentFrameBytesWritten, buffer.bytesLeft())); in readFrames() 300 if (buffer.bytesLeft() < FlacConstants.MAX_FRAME_HEADER_SIZE) { in readFrames() 303 int bytesLeft = buffer.bytesLeft(); in readFrames() local 305 buffer.getData(), buffer.getPosition(), buffer.getData(), /* destPos= */ 0, bytesLeft); in readFrames() local 307 buffer.setLimit(bytesLeft); in readFrames()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/ |
D | FlacExtractor.java | 277 } else if (buffer.bytesLeft() == 0) { in readFrames() 288 buffer.skipBytes(min(minFrameSize - currentFrameBytesWritten, buffer.bytesLeft())); in readFrames() 304 if (buffer.bytesLeft() < FlacConstants.MAX_FRAME_HEADER_SIZE) { in readFrames() 307 int bytesLeft = buffer.bytesLeft(); in readFrames() local 309 buffer.getData(), buffer.getPosition(), buffer.getData(), /* destPos= */ 0, bytesLeft); in readFrames() local 311 buffer.setLimit(bytesLeft); in readFrames()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/text/tx3g/ |
D | Tx3gDecoder.java | 141 while (parsableByteArray.bytesLeft() >= SIZE_ATOM_HEADER) { in decode() 146 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode() 152 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode() 169 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in readSubtitleText() 174 if (parsableByteArray.bytesLeft() >= SIZE_BOM_UTF16) { in readSubtitleText() 185 assertTrue(parsableByteArray.bytesLeft() >= SIZE_STYLE_RECORD); in applyStyleRecord()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/text/tx3g/ |
D | Tx3gDecoder.java | 141 while (parsableByteArray.bytesLeft() >= SIZE_ATOM_HEADER) { in decode() 146 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode() 152 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode() 169 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in readSubtitleText() 174 if (parsableByteArray.bytesLeft() >= SIZE_BOM_UTF16) { in readSubtitleText() 185 assertTrue(parsableByteArray.bytesLeft() >= SIZE_STYLE_RECORD); in applyStyleRecord()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ |
D | CeaUtil.java | 45 while (seiBuffer.bytesLeft() > 1 /* last byte will be rbsp_trailing_bits */) { in consume() 50 if (payloadSize == -1 || payloadSize > seiBuffer.bytesLeft()) { in consume() 128 if (buffer.bytesLeft() == 0) { in readNon255TerminatedValue()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ |
D | CeaUtil.java | 45 while (seiBuffer.bytesLeft() > 1 /* last byte will be rbsp_trailing_bits */) { in consume() 50 if (payloadSize == -1 || payloadSize > seiBuffer.bytesLeft()) { in consume() 128 if (buffer.bytesLeft() == 0) { in readNon255TerminatedValue()
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | TestUtil.kt | 67 internal var bytesLeft = size in randomSource() variable 74 if (bytesLeft == 0L) return -1L in randomSource() 75 if (byteCount > bytesLeft) byteCount = bytesLeft in randomSource() 83 bytesLeft -= Segment.SIZE.toLong() in randomSource() 89 bytesLeft -= byteCount in randomSource()
|