Home
last modified time | relevance | path

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

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DAbstractLZ77CompressorInputStream.java94 private int writeIndex; field in AbstractLZ77CompressorInputStream
138 writeIndex = readIndex = 0; in AbstractLZ77CompressorInputStream()
157 return writeIndex - readIndex; in available()
181 if (writeIndex != 0) { in prefill()
188 writeIndex += len; in prefill()
239 buf.length - writeIndex); in tryToReadLiteral()
241 ? IOUtils.readFully(in, buf, writeIndex, reallyTryToRead) in tryToReadLiteral()
247 writeIndex += reallyTryToRead; in tryToReadLiteral()
266 writeIndex -= windowSize; in slideBuffer()
300 buf.length - writeIndex); in tryToCopy()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DCircularBuffer.java40 private int writeIndex; field in CircularBuffer
51 return readIndex != writeIndex; in available()
58 buffer[writeIndex] = (byte) value; in put()
59 writeIndex = (writeIndex + 1) % size; in put()
81 final int pos1 = writeIndex - distance; in copy()
84 buffer[writeIndex] = buffer[(i + size) % size]; in copy()
85 writeIndex = (writeIndex + 1) % size; in copy()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCompositeReadableBufferTest.java99 int writeIndex = 0; in readByteArrayShouldSucceed() local
101 composite.readBytes(bytes, writeIndex, 1); in readByteArrayShouldSucceed()
102 writeIndex++; in readByteArrayShouldSucceed()
103 assertEquals(EXPECTED_VALUE.length() - writeIndex, composite.readableBytes()); in readByteArrayShouldSucceed()
105 composite.readBytes(bytes, writeIndex, 5); in readByteArrayShouldSucceed()
106 writeIndex += 5; in readByteArrayShouldSucceed()
107 assertEquals(EXPECTED_VALUE.length() - writeIndex, composite.readableBytes()); in readByteArrayShouldSucceed()
110 composite.readBytes(bytes, writeIndex, remaining); in readByteArrayShouldSucceed()
111 writeIndex += remaining; in readByteArrayShouldSucceed()
113 assertEquals(bytes.length, writeIndex); in readByteArrayShouldSucceed()
/external/webrtc/modules/third_party/portaudio/
Dpa_ringbuffer.c85 return ( (rbuf->writeIndex - rbuf->readIndex) & rbuf->bigMask ); in PaUtil_GetRingBufferReadAvailable()
99 rbuf->writeIndex = rbuf->readIndex = 0; in PaUtil_FlushRingBuffer()
118 index = rbuf->writeIndex & rbuf->smallMask; in PaUtil_GetRingBufferWriteRegions()
146 return rbuf->writeIndex = (rbuf->writeIndex + elementCount) & rbuf->bigMask; in PaUtil_AdvanceRingBufferWriteIndex()
Dpa_ringbuffer.h90 PaRingBufferSize writeIndex; /**< Index of next writable element. Set by member
/external/oboe/src/fifo/
DFifoBuffer.cpp120 uint32_t writeIndex = mFifo->getWriteIndex(); in write() local
121 int byteIndex = convertFramesToBytes(writeIndex); in write()
124 if ((writeIndex + framesToWrite) > mFifo->getFrameCapacity()) { in write()
126 int32_t frames1 = static_cast<uint32_t>(mFifo->getFrameCapacity() - writeIndex); in write()
/external/oboe/samples/hello-oboe/src/main/cpp/
DHelloOboeEngine.cpp55 int64_t writeIndex = mStream->getFramesWritten(); in getCurrentOutputLatencyMillis() local
57 int64_t frameIndexDelta = writeIndex - playedFrame.position; in getCurrentOutputLatencyMillis()
/external/flatbuffers/swift/Sources/FlatBuffers/
DFlatBufferBuilder.swift156 var writeIndex = 0 in endTable() variable
159 writeIndex = _vtable.count - index in endTable()
164 for i in stride(from: writeIndex - 1, to: -1, by: -1) { in endTable()
170 _bb.push(value: (UInt16(writeIndex + 2) * UInt16(sizeofVoffset)), len: sizeofVoffset) in endTable()
/external/icu/icu4c/source/common/
Duts46.cpp614 int32_t readIndex=mappingStart, writeIndex=mappingStart; in mapDevChars() local
621 s[writeIndex++]=0x73; // Replace sharp s with first s. in mapDevChars()
623 if(writeIndex==readIndex) { in mapDevChars()
633 u_memmove(s+writeIndex+1, s+writeIndex, length-writeIndex); in mapDevChars()
636 s[writeIndex++]=0x73; in mapDevChars()
641 s[writeIndex++]=0x3c3; in mapDevChars()
650 s[writeIndex++]=c; in mapDevChars()
653 } while(writeIndex<length); in mapDevChars()
/external/lzma/C/
DMtCoder.c264 wi = mtc->writeIndex; in ThreadFunc2()
266 mtc->writeIndex = (unsigned)(int)-1; in ThreadFunc2()
312 mtc->writeIndex = wi; in ThreadFunc2()
518 p->writeIndex = 0; in MtCoder_Code()
DMtCoder.h108 unsigned writeIndex; member
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitcode/
DBitcodeWriter.h103 void writeIndex(
/external/angle/src/libANGLE/renderer/vulkan/
DProgramVk.cpp95 for (int writeIndex = arrayIndex, readIndex = 0; writeIndex < maxIndex; in UpdateDefaultUniformBlock() local
96 writeIndex++, readIndex++) in UpdateDefaultUniformBlock()
98 const int arrayOffset = writeIndex * layoutInfo.arrayStride; in UpdateDefaultUniformBlock()
/external/clang/lib/Serialization/
DGlobalModuleIndex.cpp431 void writeIndex(llvm::BitstreamWriter &Stream);
689 void GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) { in writeIndex() function in GlobalModuleIndexBuilder
768 GlobalModuleIndex::writeIndex(FileManager &FileMgr, in writeIndex() function in GlobalModuleIndex
825 Builder.writeIndex(OutputStream); in writeIndex()
/external/clang/include/clang/Serialization/
DGlobalModuleIndex.h201 static ErrorCode writeIndex(FileManager &FileMgr,
/external/angle/src/compiler/translator/
DCompiler.cpp1528 size_t writeIndex = 0; in pruneUnusedFunctions() local
1539 (*sequence)[writeIndex++] = node; in pruneUnusedFunctions()
1562 (*sequence)[writeIndex++] = structDeclaration; in pruneUnusedFunctions()
1565 sequence->resize(writeIndex); in pruneUnusedFunctions()
/external/llvm/tools/llvm-dwp/
Dllvm-dwp.cpp275 writeIndex(MCStreamer &Out, MCSection *Section, in writeIndex() function
592 writeIndex(Out, MCOFI.getDwarfTUIndexSection(), ContributionOffsets, in write()
600 writeIndex(Out, MCOFI.getDwarfCUIndexSection(), ContributionOffsets, in write()
/external/sonivox/arm-wt-22k/lib_src/
Djet.c126 EAS_INLINE EAS_BOOL JET_ReadQueue (EAS_U32 *pEventQueue, EAS_U8 *pReadIndex, EAS_U8 writeIndex, EAS… in JET_ReadQueue() argument
130 if (*pReadIndex == writeIndex) in JET_ReadQueue()
/external/angle/src/libANGLE/renderer/
Dglslang_wrapper_utils.cpp1635 size_t writeIndex = 0; in modifyEntryPointInterfaceList() local
1648 (*interfaceList)[writeIndex] = id; in modifyEntryPointInterfaceList()
1649 ++writeIndex; in modifyEntryPointInterfaceList()
1653 interfaceList->resize(writeIndex); in modifyEntryPointInterfaceList()
4236 size_t writeIndex = 0; in transformEntryPoint() local
4257 interfaceList[writeIndex] = id; in transformEntryPoint()
4258 ++writeIndex; in transformEntryPoint()
4262 interfaceList.resize(writeIndex); in transformEntryPoint()
/external/angle/src/libANGLE/renderer/metal/
DProgramMtl.mm127 for (int writeIndex = arrayIndex, readIndex = 0; writeIndex < maxIndex;
128 writeIndex++, readIndex++)
130 const int arrayOffset = writeIndex * layoutInfo.arrayStride;
/external/clang/lib/Frontend/
DFrontendAction.cpp466 GlobalModuleIndex::writeIndex(CI.getFileManager(), in Execute()
DCompilerInstance.cpp1696 GlobalModuleIndex::writeIndex( in loadGlobalModuleIndex()
1723 GlobalModuleIndex::writeIndex( in loadGlobalModuleIndex()
/external/doclava/src/com/google/doclava/
DDoclava.java597 private static void writeIndex(String dir) { in writeIndex() method in Doclava
1600 writeIndex(packageDir); in writeClassLists()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp441 void writeIndex();
3579 writeIndex(); in writeBlocks()
3748 void IndexBitcodeWriter::writeIndex() { in writeIndex() function in IndexBitcodeWriter
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp4455 void BitcodeWriter::writeIndex( in writeIndex() function in BitcodeWriter
4515 Writer.writeIndex(&Index, ModuleToSummariesForIndex); in WriteIndexToFile()