atPut(offset: Integer64;
value: Byte) updating;
The atPut method of the JadeBytes class overwrites the specified byte value at the specified offset in the binary content of the receiver. The offset parameter must contain a value between one and the length of the data content in bytes.
This partial-update method clears the stored checksum of singleFile instances.
You can use the allocate method to allocate virtual storage before randomly inserting data into the receiver in a piece-wise fashion. You can use the atPut method to update parts of the binary content of a JadeBytes object, as shown in the following example.
vars
bytes : JadeBytes;
begin
create bytes;
bytes.setContent("JADE".Binary);
bytes.atPut(3, "N".Byte);
write bytes.getContent; // Writes "JANE"
epilog
delete bytes;
end;