Public Member Functions | List of all members
NullAllocator Class Reference

#include <transfer_test_helpers.hpp>

Inheritance diagram for NullAllocator:
Inheritance graph
[legend]

Public Member Functions

virtual void * allocate (std::size_t)
 
virtual void deallocate (const void *)
 
virtual uint16_t getBlockCapacity () const
 
- Public Member Functions inherited from uavcan::IPoolAllocator
virtual ~IPoolAllocator ()
 

Detailed Description

Zero allocator - always fails

Definition at line 314 of file transfer_test_helpers.hpp.

Member Function Documentation

◆ allocate()

virtual void* NullAllocator::allocate ( std::size_t  )
inlinevirtual

Implements uavcan::IPoolAllocator.

Definition at line 317 of file transfer_test_helpers.hpp.

◆ deallocate()

virtual void NullAllocator::deallocate ( const void *  )
inlinevirtual

Implements uavcan::IPoolAllocator.

Definition at line 318 of file transfer_test_helpers.hpp.

◆ getBlockCapacity()

virtual uint16_t NullAllocator::getBlockCapacity ( ) const
inlinevirtual

Returns the maximum number of blocks this allocator can allocate.

Implements uavcan::IPoolAllocator.

Definition at line 319 of file transfer_test_helpers.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04