Bitcoin
Classes | Functions | Variables
leveldb::crc32c Namespace Reference

Classes

class  CRC
 

Functions

static uint32_t LE_LOAD32 (const uint8_t *p)
 
static bool CanAccelerateCRC32C ()
 
uint32_t Extend (uint32_t crc, const char *buf, size_t size)
 
uint32_t Value (const char *data, size_t n)
 
uint32_t Mask (uint32_t crc)
 
uint32_t Unmask (uint32_t masked_crc)
 
 TEST (CRC, StandardResults)
 
 TEST (CRC, Values)
 
 TEST (CRC, Extend)
 
 TEST (CRC, Mask)
 

Variables

static const uint32_t table0_ [256]
 
static const uint32_t table1_ [256]
 
static const uint32_t table2_ [256]
 
static const uint32_t table3_ [256]
 
static const uint32_t kMaskDelta = 0xa282ead8ul
 

Function Documentation

◆ CanAccelerateCRC32C()

static bool leveldb::crc32c::CanAccelerateCRC32C ( )
static

◆ Extend()

uint32_t leveldb::crc32c::Extend ( uint32_t  crc,
const char *  buf,
size_t  size 
)

◆ LE_LOAD32()

static uint32_t leveldb::crc32c::LE_LOAD32 ( const uint8_t p)
inlinestatic

◆ Mask()

uint32_t leveldb::crc32c::Mask ( uint32_t  crc)
inline

◆ TEST() [1/4]

leveldb::crc32c::TEST ( CRC  ,
StandardResults   
)

◆ TEST() [2/4]

leveldb::crc32c::TEST ( CRC  ,
Values   
)

◆ TEST() [3/4]

leveldb::crc32c::TEST ( CRC  ,
Extend   
)

◆ TEST() [4/4]

leveldb::crc32c::TEST ( CRC  ,
Mask   
)

◆ Unmask()

uint32_t leveldb::crc32c::Unmask ( uint32_t  masked_crc)
inline

◆ Value()

uint32_t leveldb::crc32c::Value ( const char *  data,
size_t  n 
)
inline

Variable Documentation

◆ kMaskDelta

const uint32_t leveldb::crc32c::kMaskDelta = 0xa282ead8ul
static

◆ table0_

const uint32_t leveldb::crc32c::table0_[256]
static

◆ table1_

const uint32_t leveldb::crc32c::table1_[256]
static

◆ table2_

const uint32_t leveldb::crc32c::table2_[256]
static

◆ table3_

const uint32_t leveldb::crc32c::table3_[256]
static