proxygen
|
Public Member Functions | |
uint64_t | hash (size_t size) const |
ByteRange | data (size_t size) const |
Protected Member Functions | |
DataHolder (size_t sizeLog2) | |
Protected Attributes | |
const size_t | size_ |
std::unique_ptr< uint8_t[]> | data_ |
std::unordered_map< uint64_t, uint64_t > | hashCache_ |
Definition at line 51 of file CompressionTest.cpp.
|
explicitprotected |
Definition at line 63 of file CompressionTest.cpp.
ByteRange folly::io::test::DataHolder::data | ( | size_t | size | ) | const |
Definition at line 78 of file CompressionTest.cpp.
References data_, folly::size(), and size_.
Referenced by folly::io::test::StreamingCompressionTest::runCompressStreamTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), folly::io::test::StreamingCompressionTest::runResetStreamTest(), folly::io::test::CompressionTest::runSimpleIOBufTest(), folly::io::test::CompressionTest::runSimpleStringTest(), folly::io::test::CompressionVarintTest::runSimpleTest(), folly::io::test::CompressionCorruptionTest::runSimpleTest(), folly::io::test::AutomaticCodecTest::runSimpleTest(), folly::io::test::StreamingCompressionTest::runUncompressStreamTest(), folly::io::test::CompressionTest::SetUp(), folly::io::test::StreamingCompressionTest::SetUp(), folly::io::test::TEST(), and folly::io::test::TEST_P().
uint64_t folly::io::test::DataHolder::hash | ( | size_t | size | ) | const |
Definition at line 66 of file CompressionTest.cpp.
References data_, folly::hash::fnv64_buf(), h, hashCache_, folly::size(), size_, and uint64_t.
Referenced by folly::io::test::StreamingCompressionTest::runCompressStreamTest(), folly::io::test::StreamingCompressionTest::runResetStreamTest(), folly::io::test::CompressionTest::runSimpleIOBufTest(), folly::io::test::CompressionVarintTest::runSimpleTest(), folly::io::test::CompressionCorruptionTest::runSimpleTest(), folly::io::test::AutomaticCodecTest::runSimpleTest(), and folly::io::test::TEST_P().
|
protected |
Definition at line 59 of file CompressionTest.cpp.
Referenced by folly::io::test::ConstantDataHolder::ConstantDataHolder(), data(), hash(), and folly::io::test::RandomDataHolder::RandomDataHolder().
Definition at line 60 of file CompressionTest.cpp.
Referenced by hash().
|
protected |
Definition at line 58 of file CompressionTest.cpp.
Referenced by folly::io::test::ConstantDataHolder::ConstantDataHolder(), data(), and hash().