GCSIM
Public Member Functions | Public Attributes | List of all members
segment_info Struct Reference

representation of the element inside of the free_memory_table. More...

#include <segment-info.hpp>

Public Member Functions

 segment_info ()
 creates the instance of the segment_info.
 
 segment_info (header *head, uint32_t bytes)
 creates the instance of the segment_info.
 

Public Attributes

headerfree_list_head
 pointer to a head of the free list.
 
uint32_t free_bytes
 number of free bytes in a segment.
 

Detailed Description

representation of the element inside of the free_memory_table.

Constructor & Destructor Documentation

◆ segment_info() [1/2]

segment_info::segment_info ( )

creates the instance of the segment_info.

sets free_bytes to 0, free_list_head to nullptr

◆ segment_info() [2/2]

segment_info::segment_info ( header head,
uint32_t  bytes 
)

creates the instance of the segment_info.

Parameters
head- pointer to a head of the free memory list.
bytes- number of free bytes.

Member Data Documentation

◆ free_bytes

uint32_t segment_info::free_bytes

number of free bytes in a segment.

◆ free_list_head

header* segment_info::free_list_head

pointer to a head of the free list.


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