purge

purge() updating;

The purge method of the JadeBytes class clears the binary content of the receiver and removes any virtual storage previously allocated to the object. The purge method is operationally identical to the clear method.

A singleFile instance has its associated disk file truncated to zero-length.

The following example shows the use of the purge method.

vars
    bytes : JadeBytes;
begin
    create bytes;
    bytes.setContent("JADE".Binary);
    bytes.purge;
    write bytes.getLength;       // Writes 0
epilog
    delete bytes;
end;