proxygen
|
#include <Dwarf.h>
Public Member Functions | |
Path () | |
Path (folly::StringPiece baseDir, folly::StringPiece subDir, folly::StringPiece file) | |
folly::StringPiece | baseDir () const |
folly::StringPiece | subDir () const |
folly::StringPiece | file () const |
size_t | size () const |
size_t | toBuffer (char *buf, size_t bufSize) const |
void | toString (std::string &dest) const |
std::string | toString () const |
Private Attributes | |
folly::StringPiece | baseDir_ |
folly::StringPiece | subDir_ |
folly::StringPiece | file_ |
Represent a file path a s collection of three parts (base directory, subdirectory, and file).
|
inline |
folly::symbolizer::Dwarf::Path::Path | ( | folly::StringPiece | baseDir, |
folly::StringPiece | subDir, | ||
folly::StringPiece | file | ||
) |
Definition at line 167 of file Dwarf.cpp.
References baseDir_, folly::Range< Iter >::clear(), folly::Range< Iter >::empty(), file_, subDir_, folly::f14::swap(), and folly::swap().
|
inline |
|
inline |
Definition at line 79 of file Dwarf.h.
References upload::dest, file_, size(), string, toBuffer(), and toString().
Referenced by Path().
size_t folly::symbolizer::Dwarf::Path::size | ( | ) | const |
Definition at line 201 of file Dwarf.cpp.
References baseDir_, folly::Range< Iter >::empty(), folly::Range< Iter >::endsWith(), file_, folly::Range< Iter >::size(), and subDir_.
Referenced by file(), toBuffer(), and toString().
|
inline |
size_t folly::symbolizer::Dwarf::Path::toBuffer | ( | char * | buf, |
size_t | bufSize | ||
) | const |
Copy the Path to a buffer of size bufSize.
toBuffer behaves like snprintf: It will always null-terminate the buffer (so it will copy at most bufSize-1 bytes), and it will return the number of bytes that would have been written if there had been enough room, so, if toBuffer returns a value >= bufSize, the output was truncated.
Definition at line 224 of file Dwarf.cpp.
References append(), baseDir_, folly::Range< Iter >::empty(), folly::Range< Iter >::endsWith(), file_, min, size(), and subDir_.
Referenced by file(), and folly::symbolizer::SymbolizePrinter::print().
void folly::symbolizer::Dwarf::Path::toString | ( | std::string & | dest | ) | const |
Definition at line 262 of file Dwarf.cpp.
References baseDir_, folly::Range< Iter >::begin(), folly::Range< Iter >::empty(), folly::Range< Iter >::end(), file_, size(), and subDir_.
Referenced by folly::symbolizer::operator<<(), and folly::symbolizer::test::TEST().
|
inline |
|
private |
Definition at line 106 of file Dwarf.h.
Referenced by baseDir(), Path(), size(), toBuffer(), and toString().
|
private |
Definition at line 108 of file Dwarf.h.
Referenced by file(), Path(), size(), toBuffer(), and toString().
|
private |
Definition at line 107 of file Dwarf.h.
Referenced by Path(), size(), subDir(), toBuffer(), and toString().