The Pedigree Project 0.1
Functions | Variables
QuotaOld Namespace Reference

Functions

QuotaStatus EXPORTED_PUBLIC decode (const void *bytes, size_t length, QuotaRecord &record)
 
QuotaStatus EXPORTED_PUBLIC encode (const QuotaRecord &record, void *bytes, size_t length)
 
bool EXPORTED_PUBLIC looksLikeNewFormat (const void *bytes, size_t length)
 

Variables

constexpr size_t RecordSize = 32
 

Detailed Description

QFMT_VFS_OLD is a native-endian, 32-byte record array indexed by ID.

Function Documentation

◆ decode()

QuotaStatus QuotaOld::decode ( const void *  bytes,
size_t  length,
QuotaRecord &  record 
)

Definition at line 104 of file QuotaTable.cc.

◆ encode()

QuotaStatus QuotaOld::encode ( const QuotaRecord &  record,
void *  bytes,
size_t  length 
)

Definition at line 122 of file QuotaTable.cc.

◆ looksLikeNewFormat()

bool QuotaOld::looksLikeNewFormat ( const void *  bytes,
size_t  length 
)

Definition at line 142 of file QuotaTable.cc.

Variable Documentation

◆ RecordSize

constexpr size_t QuotaOld::RecordSize = 32
constexpr

Definition at line 42 of file QuotaTable.h.