Bitcoin
Classes | Namespaces | Macros | Functions | Variables
port_posix.h File Reference
#include <endian.h>
#include <pthread.h>
#include <stdint.h>
#include <string>
#include "port/atomic_pointer.h"

Go to the source code of this file.

Classes

class  leveldb::port::Mutex
 
class  leveldb::port::CondVar
 

Namespaces

 leveldb
 
 leveldb::port
 

Macros

#define PLATFORM_IS_LITTLE_ENDIAN   (__BYTE_ORDER == __LITTLE_ENDIAN)
 
#define LEVELDB_ONCE_INIT   PTHREAD_ONCE_INIT
 

Functions

void leveldb::port::InitOnce (port::OnceType *, void(*initializer)())
 
bool leveldb::port::Snappy_Compress (const char *input, size_t length, ::std::string *output)
 
bool leveldb::port::Snappy_GetUncompressedLength (const char *input, size_t length, size_t *result)
 
bool leveldb::port::Snappy_Uncompress (const char *input_data, size_t input_length, char *output)
 
bool leveldb::port::GetHeapProfile (void(*func)(void *, const char *, int), void *arg)
 
bool leveldb::port::HasAcceleratedCRC32C ()
 
uint32_t leveldb::port::AcceleratedCRC32C (uint32_t crc, const char *buf, size_t size)
 

Variables

static const bool leveldb::port::kLittleEndian = PLATFORM_IS_LITTLE_ENDIAN
 

Macro Definition Documentation

◆ LEVELDB_ONCE_INIT

#define LEVELDB_ONCE_INIT   PTHREAD_ONCE_INIT

◆ PLATFORM_IS_LITTLE_ENDIAN

#define PLATFORM_IS_LITTLE_ENDIAN   (__BYTE_ORDER == __LITTLE_ENDIAN)