System.SysUtils.WordRec

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  WordRec = packed record
    case Integer of
      0: (Lo, Hi: Byte);
      1: (Bytes: array [0..1] of Byte);
  end;

C++

struct DECLSPEC_DRECORD WordRec
{
public:
    union
    {
        struct
        {
            System::StaticArray<System::Byte, 2> Bytes;
        };
        struct
        {
            System::Byte Lo;
            System::Byte Hi;
        };
    };
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

WordRec declares a utility record to store the high and low order bytes of a variable.

The WordRec type declares a utility record that stores the high and low order bytes of the specified variable as type Byte. WordRec is used primarily for typecasting.