CXS_CLUSTER::GetSize
Beschreibung:
Diese Methode gibt die Größe eines Clusters in Byte zurück.
Code-Beispiel:
Var(min, max, current)
0 -> max
100000000 -> min
GetManager(OBJECT) Call(GetSegments)
iterate {
Call(GetClusters)
iterate {
Call(GetSize) -> current
current max > if { current -> max }
current min < if { current -> min }
}
}
"Größter Cluster hat: " max + " Bytes\n" +
"Kleinster Cluster hat: " + min + " Bytes" +
Attention
//=> Größter Cluster hat: 31522816 Bytes
// Kleinster Cluster hat: 512 Bytes
0 -> max
100000000 -> min
GetManager(OBJECT) Call(GetSegments)
iterate {
Call(GetClusters)
iterate {
Call(GetSize) -> current
current max > if { current -> max }
current min < if { current -> min }
}
}
"Größter Cluster hat: " max + " Bytes\n" +
"Kleinster Cluster hat: " + min + " Bytes" +
Attention
//=> Größter Cluster hat: 31522816 Bytes
// Kleinster Cluster hat: 512 Bytes
Stack | Position | Objekttyp | Kurzbeschreibung |
---|---|---|---|
Stack(In) | Top | CXS_CLUSTER | Ein Cluster |
Stack(Out) | Top | INTEGER | Clustergröße (Bytes) |
Funktionsaufruf: Call(GetSize)