Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
FuzzedFileProvider Class Reference

#include <util.h>

Collaboration diagram for FuzzedFileProvider:
[legend]

Public Member Functions

 FuzzedFileProvider (FuzzedDataProvider &fuzzed_data_provider)
 
FILEopen ()
 

Static Public Member Functions

static ssize_t read (void *cookie, char *buf, size_t size)
 
static ssize_t write (void *cookie, const char *buf, size_t size)
 
static int seek (void *cookie, int64_t *offset, int whence)
 
static int close (void *cookie)
 

Private Attributes

FuzzedDataProviderm_fuzzed_data_provider
 
int64_t m_offset = 0
 

Detailed Description

Definition at line 260 of file util.h.

Constructor & Destructor Documentation

◆ FuzzedFileProvider()

FuzzedFileProvider::FuzzedFileProvider ( FuzzedDataProvider & fuzzed_data_provider)
inline

Definition at line 266 of file util.h.

Member Function Documentation

◆ close()

int FuzzedFileProvider::close ( void * cookie)
static

Definition at line 356 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open()

FILE * FuzzedFileProvider::open ( )

Definition at line 256 of file util.cpp.

Here is the call graph for this function:

◆ read()

ssize_t FuzzedFileProvider::read ( void * cookie,
char * buf,
size_t size )
static

Definition at line 297 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ seek()

int FuzzedFileProvider::seek ( void * cookie,
int64_t * offset,
int whence )
static

Definition at line 328 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

ssize_t FuzzedFileProvider::write ( void * cookie,
const char * buf,
size_t size )
static

Definition at line 316 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_fuzzed_data_provider

FuzzedDataProvider& FuzzedFileProvider::m_fuzzed_data_provider
private

Definition at line 262 of file util.h.

◆ m_offset

int64_t FuzzedFileProvider::m_offset = 0
private

Definition at line 263 of file util.h.


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