Bitcoin Core 28.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 264 of file util.h.

Constructor & Destructor Documentation

◆ FuzzedFileProvider()

FuzzedFileProvider::FuzzedFileProvider ( FuzzedDataProvider fuzzed_data_provider)
inline

Definition at line 270 of file util.h.

Member Function Documentation

◆ close()

int FuzzedFileProvider::close ( void *  cookie)
static

Definition at line 351 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 251 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 292 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 323 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 311 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 266 of file util.h.

◆ m_offset

int64_t FuzzedFileProvider::m_offset = 0
private

Definition at line 267 of file util.h.


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