Bitcoin Core  27.99.0
P2P Digital Currency
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)
 
FILE * open ()
 

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 246 of file util.h.

Constructor & Destructor Documentation

◆ FuzzedFileProvider()

FuzzedFileProvider::FuzzedFileProvider ( FuzzedDataProvider fuzzed_data_provider)
inline

Definition at line 252 of file util.h.

Member Function Documentation

◆ close()

int FuzzedFileProvider::close ( void *  cookie)
static

Definition at line 348 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 248 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 289 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 320 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 308 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 248 of file util.h.

◆ m_offset

int64_t FuzzedFileProvider::m_offset = 0
private

Definition at line 249 of file util.h.


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