|
LLVM
4.0.0
|
#include <MappedBlockStream.h>
Public Member Functions | |
| Error | readBytes (uint32_t Offset, uint32_t Size, ArrayRef< uint8_t > &Buffer) const override |
| Error | readLongestContiguousChunk (uint32_t Offset, ArrayRef< uint8_t > &Buffer) const override |
| uint32_t | getLength () const override |
| Error | writeBytes (uint32_t Offset, ArrayRef< uint8_t > Buffer) const override |
| Error | commit () const override |
| const MSFStreamLayout & | getStreamLayout () const |
| uint32_t | getBlockSize () const |
| uint32_t | getNumBlocks () const |
| uint32_t | getStreamLength () const |
Public Member Functions inherited from llvm::msf::WritableStream | |
| ~WritableStream () override=default | |
Public Member Functions inherited from llvm::msf::ReadableStream | |
| virtual | ~ReadableStream ()=default |
Static Public Member Functions | |
| static std::unique_ptr < WritableMappedBlockStream > | createStream (uint32_t BlockSize, uint32_t NumBlocks, const MSFStreamLayout &Layout, const WritableStream &MsfData) |
| static std::unique_ptr < WritableMappedBlockStream > | createIndexedStream (const MSFLayout &Layout, const WritableStream &MsfData, uint32_t StreamIndex) |
| static std::unique_ptr < WritableMappedBlockStream > | createDirectoryStream (const MSFLayout &Layout, const WritableStream &MsfData) |
| static std::unique_ptr < WritableMappedBlockStream > | createFpmStream (const MSFLayout &Layout, const WritableStream &MsfData) |
Protected Member Functions | |
| WritableMappedBlockStream (uint32_t BlockSize, uint32_t NumBlocks, const MSFStreamLayout &StreamLayout, const WritableStream &MsfData) | |
Definition at line 97 of file MappedBlockStream.h.
|
protected |
Definition at line 320 of file MappedBlockStream.cpp.
|
overridevirtual |
Implements llvm::msf::WritableStream.
Definition at line 413 of file MappedBlockStream.cpp.
References llvm::msf::WritableStream::commit().
|
static |
Definition at line 346 of file MappedBlockStream.cpp.
References llvm::msf::MSFStreamLayout::Blocks, llvm::msf::SuperBlock::BlockSize, createStream(), llvm::msf::MSFLayout::DirectoryBlocks, llvm::msf::MSFStreamLayout::Length, llvm::msf::SuperBlock::NumBlocks, llvm::msf::SuperBlock::NumDirectoryBytes, and llvm::msf::MSFLayout::SB.
|
static |
Definition at line 355 of file MappedBlockStream.cpp.
References llvm::msf::SuperBlock::BlockSize, createStream(), initializeFpmStreamLayout(), llvm::msf::SuperBlock::NumBlocks, and llvm::msf::MSFLayout::SB.
|
static |
Definition at line 335 of file MappedBlockStream.cpp.
References assert(), llvm::msf::MSFStreamLayout::Blocks, llvm::msf::SuperBlock::BlockSize, createStream(), llvm::msf::SuperBlock::NumBlocks, llvm::msf::MSFLayout::SB, llvm::msf::MSFLayout::StreamMap, and llvm::msf::MSFLayout::StreamSizes.
|
static |
Definition at line 327 of file MappedBlockStream.cpp.
References BlockSize.
Referenced by createDirectoryStream(), createFpmStream(), and createIndexedStream().
|
inline |
Definition at line 126 of file MappedBlockStream.h.
References llvm::msf::MappedBlockStream::getBlockSize().
Referenced by writeBytes().
|
overridevirtual |
Implements llvm::msf::ReadableStream.
Definition at line 372 of file MappedBlockStream.cpp.
References llvm::msf::MappedBlockStream::getLength().
|
inline |
Definition at line 127 of file MappedBlockStream.h.
References llvm::msf::MappedBlockStream::getNumBlocks().
|
inline |
Definition at line 123 of file MappedBlockStream.h.
Referenced by writeBytes().
|
inline |
Definition at line 128 of file MappedBlockStream.h.
References llvm::msf::MappedBlockStream::getStreamLength().
Referenced by writeBytes().
|
overridevirtual |
Implements llvm::msf::ReadableStream.
Definition at line 362 of file MappedBlockStream.cpp.
References llvm::msf::MappedBlockStream::readBytes().
|
overridevirtual |
Implements llvm::msf::ReadableStream.
Definition at line 367 of file MappedBlockStream.cpp.
References llvm::msf::MappedBlockStream::readLongestContiguousChunk().
|
overridevirtual |
Implements llvm::msf::WritableStream.
Definition at line 376 of file MappedBlockStream.cpp.
References llvm::msf::MSFStreamLayout::Blocks, llvm::msf::blockToOffset(), llvm::ArrayRef< T >::data(), getBlockSize(), getStreamLayout(), getStreamLength(), llvm::msf::insufficient_buffer, llvm::msf::MSFStreamLayout::Length, fuzzer::min(), llvm::ArrayRef< T >::size(), llvm::Error::success(), and llvm::msf::WritableStream::writeBytes().
1.8.6