LLVM
8.0.1
|
#include "llvm/Support/TarWriter.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Path.h"
Go to the source code of this file.
Classes | |
struct | UstarHeader |
Functions | |
static UstarHeader | makeUstarHeader () |
static std::string | formatPax (StringRef Key, StringRef Val) |
static void | pad (raw_fd_ostream &OS) |
static void | computeChecksum (UstarHeader &Hdr) |
static void | writePaxHeader (raw_fd_ostream &OS, StringRef Path) |
static bool | splitUstar (StringRef Path, StringRef &Prefix, StringRef &Name) |
static void | writeUstarHeader (raw_fd_ostream &OS, StringRef Prefix, StringRef Name, size_t Size) |
Variables | |
static const int | BlockSize = 512 |
|
static |
Definition at line 89 of file TarWriter.cpp.
References UstarHeader::Checksum, I, and llvm::Intrinsic::memset.
Referenced by writePaxHeader(), and writeUstarHeader().
Definition at line 71 of file TarWriter.cpp.
References llvm::StringRef::size(), and llvm::Twine::str().
Referenced by writePaxHeader().
|
static |
Definition at line 57 of file TarWriter.cpp.
References UstarHeader::Magic, llvm::Intrinsic::memcpy, and UstarHeader::Version.
Referenced by writePaxHeader(), and writeUstarHeader().
|
static |
Definition at line 83 of file TarWriter.cpp.
References llvm::alignTo(), BlockSize, llvm::raw_fd_ostream::seek(), and llvm::raw_ostream::tell().
Referenced by llvm::TarWriter::append(), and writePaxHeader().
Definition at line 128 of file TarWriter.cpp.
References UstarHeader::Name, llvm::StringRef::npos, UstarHeader::Prefix, llvm::StringRef::rfind(), llvm::StringRef::size(), and llvm::StringRef::substr().
Referenced by llvm::TarWriter::append().
|
static |
Definition at line 102 of file TarWriter.cpp.
References computeChecksum(), formatPax(), makeUstarHeader(), pad(), UstarHeader::Size, and UstarHeader::TypeFlag.
Referenced by llvm::TarWriter::append().
|
static |
Definition at line 148 of file TarWriter.cpp.
References computeChecksum(), llvm::StringRef::data(), makeUstarHeader(), llvm::Intrinsic::memcpy, UstarHeader::Mode, UstarHeader::Name, UstarHeader::Prefix, UstarHeader::Size, and llvm::StringRef::size().
Referenced by llvm::TarWriter::append().
|
static |
Definition at line 34 of file TarWriter.cpp.
Referenced by llvm::TarWriter::append(), llvm::msf::WritableMappedBlockStream::createStream(), llvm::msf::MappedBlockStream::getBlockSize(), llvm::msf::MappedBlockStream::getStreamLength(), INITIALIZE_PASS(), and pad().