|
LibreOffice Module io (master) 1
|
#include <streamhelper.hxx>
Public Member Functions | |
| MemRingBuffer () | |
| virtual | ~MemRingBuffer () |
| void | writeAt (sal_Int32 nPos, const Sequence< sal_Int8 > &) |
| void | readAt (sal_Int32 nPos, Sequence< sal_Int8 > &, sal_Int32 nBytesToRead) const |
| sal_Int32 | getSize () const noexcept |
| void | forgetFromStart (sal_Int32 nBytesToForget) |
Private Member Functions | |
| void | resizeBuffer (sal_Int32 nMinSize) |
| void | checkInvariants () const |
Private Attributes | |
| sal_Int8 * | m_p |
| sal_Int32 | m_nBufferLen |
| sal_Int32 | m_nStart |
| sal_Int32 | m_nOccupiedBuffer |
Definition at line 31 of file streamhelper.hxx.
| io_stm::MemRingBuffer::MemRingBuffer | ( | ) |
Definition at line 49 of file streamhelper.cxx.
|
virtual |
Definition at line 53 of file streamhelper.cxx.
References m_p.
|
inlineprivate |
Definition at line 52 of file streamhelper.hxx.
References m_nBufferLen, m_nOccupiedBuffer, and m_nStart.
Referenced by forgetFromStart(), and writeAt().
| void io_stm::MemRingBuffer::forgetFromStart | ( | sal_Int32 | nBytesToForget | ) |
| css::io::BufferSizeExceededException |
Definition at line 155 of file streamhelper.cxx.
References checkInvariants(), m_nBufferLen, m_nOccupiedBuffer, and m_nStart.
Referenced by io_stm::MemFIFO::read(), and io_stm::MemFIFO::skip().
|
noexcept |
Definition at line 150 of file streamhelper.cxx.
References m_nOccupiedBuffer.
Referenced by io_stm::MemFIFO::getSize().
| void io_stm::MemRingBuffer::readAt | ( | sal_Int32 | nPos, |
| Sequence< sal_Int8 > & | seq, | ||
| sal_Int32 | nBytesToRead | ||
| ) | const |
| css::io::BufferSizeExceededException |
Definition at line 90 of file streamhelper.cxx.
References m_nBufferLen, m_nOccupiedBuffer, m_nStart, m_p, and nPos.
Referenced by io_stm::MemFIFO::read().
|
private |
| css::io::BufferSizeExceededException |
Definition at line 58 of file streamhelper.cxx.
References m_nBufferLen, m_nOccupiedBuffer, m_nStart, m_p, and p.
Referenced by writeAt().
| css::io::BufferSizeExceededException |
Definition at line 115 of file streamhelper.cxx.
References checkInvariants(), m_nBufferLen, m_nOccupiedBuffer, m_nStart, m_p, nPos, and resizeBuffer().
Referenced by io_stm::MemFIFO::write().
|
private |
Definition at line 62 of file streamhelper.hxx.
Referenced by checkInvariants(), forgetFromStart(), readAt(), resizeBuffer(), and writeAt().
|
private |
Definition at line 64 of file streamhelper.hxx.
Referenced by checkInvariants(), forgetFromStart(), getSize(), readAt(), resizeBuffer(), and writeAt().
|
private |
Definition at line 63 of file streamhelper.hxx.
Referenced by checkInvariants(), forgetFromStart(), readAt(), resizeBuffer(), and writeAt().
|
private |
Definition at line 61 of file streamhelper.hxx.
Referenced by readAt(), resizeBuffer(), writeAt(), and ~MemRingBuffer().