HiveMind
Public Member Functions | Private Attributes | List of all members
BittyBuzzBytecode Class Reference

#include <BittyBuzzBytecode.h>

Inheritance diagram for BittyBuzzBytecode:
Inheritance graph
Collaboration diagram for BittyBuzzBytecode:
Collaboration graph

Public Member Functions

 BittyBuzzBytecode (ILogger &logger, const uint8_t *bytecode, uint16_t bytecodeLength)
 
 ~BittyBuzzBytecode ()=default
 
bbzvm_bcode_fetch_fun getBytecodeFetchFunction () const override
 Obtain the function that fetches the BittyBuzz byte code. More...
 
uint16_t getBytecodeLength () const override
 Get the size of the BittyBuzz byte code. More...
 
- Public Member Functions inherited from IBittyBuzzBytecode
virtual ~IBittyBuzzBytecode ()=default
 

Private Attributes

ILoggerm_logger
 
const uint8_t * m_bytecode
 
const uint16_t m_bytecodeLength
 

Constructor & Destructor Documentation

◆ BittyBuzzBytecode()

BittyBuzzBytecode::BittyBuzzBytecode ( ILogger logger,
const uint8_t *  bytecode,
uint16_t  bytecodeLength 
)

◆ ~BittyBuzzBytecode()

BittyBuzzBytecode::~BittyBuzzBytecode ( )
default

Member Function Documentation

◆ getBytecodeFetchFunction()

bbzvm_bcode_fetch_fun BittyBuzzBytecode::getBytecodeFetchFunction ( ) const
overridevirtual

Obtain the function that fetches the BittyBuzz byte code.

Implements IBittyBuzzBytecode.

Here is the call graph for this function:

◆ getBytecodeLength()

uint16_t BittyBuzzBytecode::getBytecodeLength ( ) const
overridevirtual

Get the size of the BittyBuzz byte code.

Returns
the size of the byte code

Implements IBittyBuzzBytecode.

Member Data Documentation

◆ m_bytecode

const uint8_t* BittyBuzzBytecode::m_bytecode
private

◆ m_bytecodeLength

const uint16_t BittyBuzzBytecode::m_bytecodeLength
private

◆ m_logger

ILogger& BittyBuzzBytecode::m_logger
private

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