Sign in Join
FPDoc Onlineexperiment

TNativeIntHelper.Bytes property

Member of TNativeIntHelperpublicIn unit sysutils

Read or write a byte.

Declaration

pascal
property Bytes[aIndex: TNativeIntByteIndex]: Byte read GetByte write PutByte;

Description

Bytes property reads or writes byte value to a byte number determined by argument aIndex.

MyNativeInt.Clear; // MyNativeInt equals 0
MyNativeInt.Bytes[1] := 1; // MyNativeInt equals 256
WriteLn(MyNativeInt.Bytes[1]); // 1

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.