SwatDB
Public Attributes | List of all members
DiskManager::SerializedFileHeader Struct Reference

Public Attributes

std::uint32_t size
 
std::uint32_t capacity
 
char bitmap [DISK_HEADER_BITMAP_SIZE]
 

Detailed Description

A Fileheader struct to be written to the beginning of Unix files. Contains serialized metadata about the file.

Member Data Documentation

◆ bitmap

char DiskManager::SerializedFileHeader::bitmap[DISK_HEADER_BITMAP_SIZE]

Bitmap of alloted pages. If 1, corresponding page is allocated. If 0 free. Valid number of bits only extend to capacity number of bits.

◆ capacity

std::uint32_t DiskManager::SerializedFileHeader::capacity

The total number of pages alloted in the relation/index file.

◆ size

std::uint32_t DiskManager::SerializedFileHeader::size

The number of valid/allocated pages out of alloted pages.


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