NAME
OTC_Alignment -
Provides alignment information.
SYNOPSIS
#include <OTC/memory/align.hh>
class OTC_Alignment
{
public:
static size_t ofChar();
static size_t ofShort();
static size_t ofInt();
static size_t ofLong();
static size_t ofFloat();
static size_t ofDouble();
static size_t ofStruct();
static size_t ofWPtr();
static size_t ofBPtr();
};
DESCRIPTION
Provides a means of obtaining alignment information. This sort of
information is handy for when writing memory managers. All values
are expressed in terms of bytes.
ALIGNMENT DATA
static size_t ofChar();
Returns alignment requirement for
type char
.
static size_t ofShort();
Returns alignment requirement for
type short
.
static size_t ofInt();
Returns alignment requirement for
type int
.
static size_t ofLong();
Returns alignment requirement for
type long
.
static size_t ofFloat();
Returns alignment requirement for
type float
.
static size_t ofDouble();
Returns alignment requirement for
type double
.
static size_t ofStruct();
Returns alignment requirement for
a struct.
static size_t ofWPtr();
Returns alignment requirement for
a pointer to a struct.
static size_t ofBPtr();
Returns alignment requirement for
a pointer to type char
.
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1994 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED