proxygen
folly::io::test::ConstantDataHolder Class Reference
Inheritance diagram for folly::io::test::ConstantDataHolder:
folly::io::test::DataHolder

Public Member Functions

 ConstantDataHolder (size_t sizeLog2)
 
- Public Member Functions inherited from folly::io::test::DataHolder
uint64_t hash (size_t size) const
 
ByteRange data (size_t size) const
 

Additional Inherited Members

- Protected Member Functions inherited from folly::io::test::DataHolder
 DataHolder (size_t sizeLog2)
 
- Protected Attributes inherited from folly::io::test::DataHolder
const size_t size_
 
std::unique_ptr< uint8_t[]> data_
 
std::unordered_map< uint64_t, uint64_thashCache_
 

Detailed Description

Definition at line 120 of file CompressionTest.cpp.

Constructor & Destructor Documentation

folly::io::test::ConstantDataHolder::ConstantDataHolder ( size_t  sizeLog2)
explicit

Definition at line 125 of file CompressionTest.cpp.

References folly::io::test::DataHolder::data_, and folly::io::test::DataHolder::size_.

125  : DataHolder(sizeLog2) {
126  memset(data_.get(), 'a', size_);
127 }
std::unique_ptr< uint8_t[]> data_

The documentation for this class was generated from the following file: