LLVM  6.0.0svn
Public Member Functions | List of all members
fuzzer::SharedMemoryRegion Class Reference

#include "Fuzzer/FuzzerShmem.h"

Public Member Functions

bool Create (const char *Name)
 
bool Open (const char *Name)
 
bool Destroy (const char *Name)
 
uint8_t * GetData ()
 
void PostServer ()
 
void WaitServer ()
 
void PostClient ()
 
void WaitClient ()
 
size_t WriteByteArray (const uint8_t *Bytes, size_t N)
 
size_t ReadByteArraySize ()
 
uint8_t * GetByteArray ()
 
bool IsServer () const
 
bool IsClient () const
 

Detailed Description

Definition at line 23 of file FuzzerShmem.h.

Member Function Documentation

◆ Create()

bool fuzzer::SharedMemoryRegion::Create ( const char Name)

◆ Destroy()

bool fuzzer::SharedMemoryRegion::Destroy ( const char Name)

◆ GetByteArray()

uint8_t* fuzzer::SharedMemoryRegion::GetByteArray ( )
inline

Definition at line 46 of file FuzzerShmem.h.

References GetData().

Referenced by fuzzer::Fuzzer::AnnounceOutput().

◆ GetData()

uint8_t* fuzzer::SharedMemoryRegion::GetData ( )
inline

Definition at line 28 of file FuzzerShmem.h.

Referenced by GetByteArray(), ReadByteArraySize(), and WriteByteArray().

◆ IsClient()

bool fuzzer::SharedMemoryRegion::IsClient ( ) const
inline

Definition at line 49 of file FuzzerShmem.h.

References fuzzer::SMR.

Referenced by fuzzer::Fuzzer::AnnounceOutput(), and fuzzer::Fuzzer::ExecuteCallback().

◆ IsServer()

bool fuzzer::SharedMemoryRegion::IsServer ( ) const
inline

Definition at line 48 of file FuzzerShmem.h.

Referenced by fuzzer::Fuzzer::AnnounceOutput().

◆ Open()

bool fuzzer::SharedMemoryRegion::Open ( const char Name)

Referenced by fuzzer::FuzzerDriver().

◆ PostClient()

void fuzzer::SharedMemoryRegion::PostClient ( )
inline

Definition at line 31 of file FuzzerShmem.h.

Referenced by fuzzer::Fuzzer::AnnounceOutput().

◆ PostServer()

void fuzzer::SharedMemoryRegion::PostServer ( )
inline

Definition at line 29 of file FuzzerShmem.h.

◆ ReadByteArraySize()

size_t fuzzer::SharedMemoryRegion::ReadByteArraySize ( )
inline

Definition at line 41 of file FuzzerShmem.h.

References GetData().

Referenced by fuzzer::Fuzzer::AnnounceOutput(), and WriteByteArray().

◆ WaitClient()

void fuzzer::SharedMemoryRegion::WaitClient ( )
inline

Definition at line 32 of file FuzzerShmem.h.

◆ WaitServer()

void fuzzer::SharedMemoryRegion::WaitServer ( )
inline

Definition at line 30 of file FuzzerShmem.h.

Referenced by fuzzer::Fuzzer::AnnounceOutput().

◆ WriteByteArray()

size_t fuzzer::SharedMemoryRegion::WriteByteArray ( const uint8_t *  Bytes,
size_t  N 
)
inline

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