Procs
proc loadBool(filename: string): bool {....raises: [OSError, IOError, ValueError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads boolean from filename
On Android it uses SharedPreferences to data loading
proc loadEnum[T: enum](filename: string): T
-
Loads integer from filename
On Android it uses SharedPreferences to data loading
proc loadFloat(filename: string): float {. ...raises: [OSError, IOError, ValueError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads float from filename
On Android it uses SharedPreferences to data loading
proc loadHexInt(filename: string): int {....raises: [OSError, IOError, ValueError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads integer from filename
On Android it uses SharedPreferences to data loading
proc loadInt(filename: string): int {....raises: [OSError, IOError, ValueError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads integer from filename
On Android it uses SharedPreferences to data loading
proc loadJson(filename: string): JsonNode {. ...raises: [OSError, IOError, JsonParsingError, ValueError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect], forbids: [].}
-
Loads JSON from filename
On Android it uses SharedPreferences to data loading
proc loadOctInt(filename: string): int {....raises: [OSError, IOError, ValueError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads integer from filename
On Android it uses SharedPreferences to data loading
proc loadString(filename: string): string {....raises: [OSError, IOError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect], forbids: [].}
-
Loads JSON from filename
On Android it uses SharedPreferences to data loading
proc save(filename: string; data: bool) {....raises: [OSError, IOError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect], forbids: [].}
-
Saves boolean in filename.
On Android it uses SharedPreferences to data saving
proc save(filename: string; data: JsonNode) {....raises: [OSError, IOError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect], forbids: [].}
-
Saves JSON in filename.
On Android it uses SharedPreferences to data saving
proc save(filename: string; data: SomeNumber)
-
Saves number in filename.
On Android it uses SharedPreferences to data saving
proc save(filename: string; data: string) {....raises: [OSError, IOError], tags: [ ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect], forbids: [].}
-
Saves string in filename.
On Android it uses SharedPreferences to data saving
proc save[T: enum](filename: string; data: T)
-
Saves Enum in filename.
On Android it uses SharedPreferences to data saving