at

at(offset: Integer64): Byte;

The at method of the JadeBytes class returns the byte at the offset specified by the value of the offset parameter from the binary content of the receiver.

The offset parameter must contain a value between one and the length of the binary content in bytes.

The following example shows the use of the at method.

vars
    bytes : JadeBytes;
begin
    create bytes;
    bytes.setContent("JADE".Binary);
    write bytes.at(3);           // Writes 68 (ASCII value "D")
epilog
    delete bytes;
end;