Fairport  v1.0.38
Utility Functions
+ Collaboration diagram for Utility Functions:

Functions

template<typename T >
ushort fairport::disk::compute_signature (T id, T address)
 Calculate the signature of an item.
template<typename T >
ushort fairport::disk::compute_signature (const block_reference< T > &reference)
 Calculate the signature of an item.
ulong fairport::disk::compute_crc (const void *pdata, ulong cb)
 Compute the CRC of a block of data.

Variables

const ulong fairport::disk::crc_table []
 Precalulated CRC table, used by compute_crc.
const byte fairport::disk::table1 []
 Data table1 used by permute and cyclic.
const byte fairport::disk::table2 []
 Data table2 used by permute and cyclic.
const byte fairport::disk::table3 []
 Data table3 used by permute and cyclic.

Function Documentation

fairport::ulong fairport::disk::compute_crc ( const void *  pdata,
ulong  cb 
) [inline]

Compute the CRC of a block of data.

Parameters:
[in]pdataA pointer to the block of data
[in]cbThe size of the data block
Returns:
The computed CRC
See also:
[MS-PST] 5.3

Definition at line 1636 of file disk.h.

template<typename T >
fairport::ushort fairport::disk::compute_signature ( id,
address 
) [inline]

Calculate the signature of an item.

Template Parameters:
Tulonglong for a unicode store, ulong for an ANSI store
Parameters:
[in]idThe id of the item to calculate
[in]addressThe location on disk of the item
Returns:
The computed signature
See also:
[MS-PST] 5.5

Definition at line 1629 of file disk.h.

template<typename T >
ushort fairport::disk::compute_signature ( const block_reference< T > &  reference)

Calculate the signature of an item.

Template Parameters:
Tulonglong for a unicode store, ulong for an ANSI store
Parameters:
[in]referenceA block_reference to the item
Returns:
The computed signature
See also:
[MS-PST] 5.5

Definition at line 481 of file disk.h.


Variable Documentation

Precalulated CRC table, used by compute_crc.

Definition at line 301 of file disk.h.

const byte fairport::disk::table1[]

Data table1 used by permute and cyclic.

See also:
[MS-PST] 5.1/mpbbR

Definition at line 350 of file disk.h.

const byte fairport::disk::table2[]

Data table2 used by permute and cyclic.

See also:
[MS-PST] 5.1/mpbbS

Definition at line 389 of file disk.h.

const byte fairport::disk::table3[]

Data table3 used by permute and cyclic.

See also:
[MS-PST] 5.1/mpbbI

Definition at line 428 of file disk.h.