mirror of
https://github.com/Vita3K/psvpfsparser.git
synced 2024-11-26 23:20:27 +00:00
13 lines
373 B
C++
13 lines
373 B
C++
#include "UnicvDbUtils.h"
|
|
|
|
#include "UnicvDbTypes.h"
|
|
|
|
std::uint32_t binTreeNumMaxAvail(std::uint32_t signatureSize, std::uint32_t pageSize)
|
|
{
|
|
return (pageSize - sizeof(sig_tbl_header_t)) / signatureSize;
|
|
}
|
|
|
|
std::uint32_t binTreeSize(std::uint32_t signatureSize, std::uint32_t binTreeNumMaxAvail)
|
|
{
|
|
return binTreeNumMaxAvail * signatureSize + sizeof(sig_tbl_header_t);
|
|
} |