last

last(): MemberType;

The last method of the JadeBytes class returns the last byte that has been allocated for the binary content of the receiver. If the JadeBytes object is empty, an exception is raised.

The following example shows the use of the last method.

vars
    bytes : JadeBytes;
begin
    create bytes;
    bytes.setContent("JADE".Binary);
    write bytes.last;            // Writes 69 (ASCII value "E")
epilog
    delete bytes;
end;