heap_storage.cpp
Dbt* SlottedPage::get(RecordID record_id) const{

	u16 size, loc;
	get_header(size, loc, record_id);

	if(loc == 0){
		return nullptr;
	}
	
	return new Dbt(this->address(loc),size);
}
// Get record from a block. If no block exists or was deleted, return None

Get record from a block. If no block exists or was deleted, return None
Get record from a block . If no block exists or was deleted return None
Dbt* SlottedPage::get(RecordID record_id) const{
	u16 size, loc;
	get_header(size, loc, record_id);
	if(loc == 0){
		return nullptr;
	}
	return new Dbt(this->address(loc),size);
}
Dbt * SlottedPage :: get ( RecordID record_id ) const { u16 size , loc ; get_header ( size , loc , record_id ) ; if ( loc == 0 ) { return nullptr ; } return new Dbt ( this -> address ( loc ) , size ) ; }
Get record from a block.
Get record from a block .