Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > getSegmentSize

getSegmentSize

getSegmentSize(): Integer;

The getSegmentSize method of the JadeBytes class returns the system-assigned segment size in bytes. This method returns Max_Integer for singleFile instances.

The following example shows the use of the getSegmentSize method.

vars
    bytes : JadeBytes;
begin
    create bytes;
    bytes.allocate(1000000);
    write bytes.getSegmentSize;  // Writes 262144
epilog
    delete bytes;
end;