Fairport
v1.0.38
|
Classes | |
class | fairport::file |
A generic class to read and write to a file. More... | |
Modules | |
BTree | |
Exceptions | |
Primitive Types | |
Files | |
file | btree.h |
Generic BTree implementation. | |
file | errors.h |
The exceptions used by Fairport. | |
file | primitives.h |
Primitive structures defined by MS-PST and MAPI. | |
file | util.h |
General utility functions and classes. | |
Functions | |
time_t | fairport::filetime_to_time_t (ulonglong filetime) |
Convert from a filetime to time_t. | |
ulonglong | fairport::time_t_to_filetime (time_t time) |
Convert from a time_t to filetime. | |
time_t | fairport::vt_date_to_time_t (double vt_time) |
Convert from a VT_DATE to a time_t. | |
double | fairport::time_t_to_vt_date (time_t time) |
Convert from a time_t to a VT_DATE. | |
bool | fairport::test_bit (const byte *pbytes, ulong bit) |
Test to see if the specified bit in the buffer is set. | |
std::wstring | fairport::codepage_1252_to_wstring (const std::string &cp1252) |
Convert a codepage 1252 string to a std::wstring. | |
std::wstring | fairport::bytes_to_wstring (const std::vector< byte > &bytes) |
Convert an array of bytes to a std::wstring. | |
std::vector< byte > | fairport::wstring_to_bytes (const std::wstring &wstr) |
Convert a std::wstring to an array of bytes. |
std::wstring fairport::bytes_to_wstring | ( | const std::vector< byte > & | bytes | ) | [inline] |
std::wstring fairport::codepage_1252_to_wstring | ( | const std::string & | cp1252 | ) | [inline] |
time_t fairport::filetime_to_time_t | ( | ulonglong | filetime | ) | [inline] |
Convert from a filetime to time_t.
FILETIME is a Win32 date/time type representing the number of 100 ns intervals since Jan 1st, 1601. This function converts it to a standard time_t.
[in] | filetime | The time to convert from |
bool fairport::test_bit | ( | const byte * | pbytes, |
ulong | bit | ||
) | [inline] |
fairport::ulonglong fairport::time_t_to_filetime | ( | time_t | time | ) | [inline] |
Convert from a time_t to filetime.
FILETIME is a Win32 date/time type representing the number of 100 ns intervals since Jan 1st, 1601. This function converts to it from a standard time_t.
[in] | time | The time to convert from |
double fairport::time_t_to_vt_date | ( | time_t | time | ) | [inline] |
Convert from a time_t to a VT_DATE.
VT_DATE is an OLE date/time type where the integer part is the date and the fraction part is the time. This function converts to it from a standard time_t.
[in] | time | The time to convert from |
time_t fairport::vt_date_to_time_t | ( | double | vt_time | ) | [inline] |
Convert from a VT_DATE to a time_t.
VT_DATE is an OLE date/time type where the integer part is the date and the fraction part is the time. This function converts it to a standard time_t
[in] | vt_time | The time to convert from |
std::vector< fairport::byte > fairport::wstring_to_bytes | ( | const std::wstring & | wstr | ) | [inline] |