Sign in Join
FPDoc Onlineexperiment

TNativeUIntHelper.Bytes property

Member of TNativeUIntHelperpublicIn unit sysutils

Read or write a byte.

Declaration

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

Description

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

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

See also

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