GATE
gate_memoryblock_t Interface Reference

Provides access to plain memory attached to a ref-counted object. More...

#include <objects.h>

Inheritance diagram for gate_memoryblock_t:
gate_object_t gate_wrapper_t gate_variant_t

Public Member Functions

gate_size_t get_size ()
 Returns the size of the allocated memory block.
 
void * get_content ()
 Returns a pointer to the begin of the memory data block.
 
- Public Member Functions inherited from gate_object_t
char const * get_interface_name ()
 Returns on object's interface path name.
 
void release ()
 Decrease object's reference counter, releases the object when count reaches zero.
 
int retain ()
 Increase object's reference counter.
 

Detailed Description

Provides access to plain memory attached to a ref-counted object.

Member Function Documentation

◆ get_content()

void * get_content ( )

Returns a pointer to the begin of the memory data block.

Returns
Pointer to data in memory block

◆ get_size()

gate_size_t get_size ( )

Returns the size of the allocated memory block.

Returns
Size of data in memory block

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