oh nevermind!
i found this
So i can actually used the fixed number to check if my canister is almost filled like so:
public func isFilled() : Bool {
return rts_heap_size() / 4294967296 * 100 > 99;
}
thanks for your time, claudio
oh nevermind!
i found this
So i can actually used the fixed number to check if my canister is almost filled like so:
public func isFilled() : Bool {
return rts_heap_size() / 4294967296 * 100 > 99;
}
thanks for your time, claudio