Home
last modified time | relevance | path

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

12

/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/llvm-project/llvm/include/llvm/Bitcode/
DBitcodeWriter.h103 void writeIndex(
/external/angle/src/libANGLE/
DOverlayWidgets.cpp549 size_t writeIndex = in fillEnabledWidgetCoordinates() local
552 GetWidgetCoordinates(widget->coords, imageExtents, enabledWidgets->coordinates[writeIndex]); in fillEnabledWidgetCoordinates()
565 writeIndex = kWidgetInternalTypeWidgetOffsets[textType] + widgetCounts[textType]++; in fillEnabledWidgetCoordinates()
568 enabledWidgets->coordinates[writeIndex]); in fillEnabledWidgetCoordinates()
/external/llvm-project/clang/include/clang/Serialization/
DGlobalModuleIndex.h185 static llvm::Error writeIndex(FileManager &FileMgr,
/external/clang/include/clang/Serialization/
DGlobalModuleIndex.h201 static ErrorCode writeIndex(FileManager &FileMgr,
/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/llvm-project/clang/lib/Serialization/
DGlobalModuleIndex.cpp464 bool writeIndex(llvm::BitstreamWriter &Stream);
758 bool GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) { in writeIndex() function in GlobalModuleIndexBuilder
852 GlobalModuleIndex::writeIndex(FileManager &FileMgr, in writeIndex() function in GlobalModuleIndex
911 if (Builder.writeIndex(OutputStream)) in 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/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/llvm-project/llvm/tools/llvm-dwp/
Dllvm-dwp.cpp325 writeIndex(MCStreamer &Out, MCSection *Section, in writeIndex() function
679 writeIndex(Out, MCOFI.getDwarfTUIndexSection(), ContributionOffsets, in write()
687 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.cpp1535 size_t writeIndex = 0; in modifyEntryPointInterfaceList() local
1548 (*interfaceList)[writeIndex] = id; in modifyEntryPointInterfaceList()
1549 ++writeIndex; in modifyEntryPointInterfaceList()
1553 interfaceList->resize(writeIndex); in modifyEntryPointInterfaceList()
4127 size_t writeIndex = 0; in transformEntryPoint() local
4148 interfaceList[writeIndex] = id; in transformEntryPoint()
4149 ++writeIndex; in transformEntryPoint()
4153 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()

12