Unit ok_complicated_record

Description
Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

Description

This unit is used for converting to and from the BigEndian format. See http://community.borland.com/article/0,1410,28964,00.html.

Submitted in thread "Pasdoc tests" on pasdoc-main on 2005-04-11 by Richard B Winston. pasdoc passes it, but the test checks many important things (line glueing single-line comments by pasdoc, record with case etc.) so it's worth adding it to test cases.

Overview

Classes, Interfaces, Objects and Records

Name Description
Packed Record TDoubleEndianCnvRec TDoubleEndianCnvRec is used in ConvertDouble to convert a double to or from the BigEndian format.

Functions and Procedures

function ConvertDouble(const Value: double): double;
procedure SwapDoubleBytes(Dest, Source: PDoubleEndianCnvRec);

Types

BytePos = (...);
PDoubleEndianCnvRec = ˆTDoubleEndianCnvRec;

Description

Functions and Procedures

function ConvertDouble(const Value: double): double;

ConvertDouble converts Value to or from the BigEndian format.

Parameters
Value
is the value to be converted.
Returns

Value after being converted to or from the BigEndian format.

procedure SwapDoubleBytes(Dest, Source: PDoubleEndianCnvRec);

SwapDoubleBytes copies TDoubleEndianCnvRec.Bytes in reverse order from Sourceˆ to Destˆ.

SwapDoubleBytes is used in ConvertDouble.

Types

BytePos = (...);

enumeration used in variant record

Values
  • EndVal
  • ByteVal
PDoubleEndianCnvRec = ˆTDoubleEndianCnvRec;

PDoubleEndianCnvRec is a pointer to a TDoubleEndianCnvRec.