2023-05-04 07:44:49 -05:00
|
|
|
// core provides lots of useful types like String and Byte
|
2023-05-04 06:19:32 -05:00
|
|
|
Use core;
|
2023-05-04 02:27:04 -05:00
|
|
|
|
2023-05-05 09:15:38 -05:00
|
|
|
Constant VERSION = Make Version {
|
2023-05-04 02:27:04 -05:00
|
|
|
major: 1,
|
|
|
|
minor: 0,
|
|
|
|
patch: 0,
|
2023-05-05 09:15:38 -05:00
|
|
|
};
|
2023-05-04 02:27:04 -05:00
|
|
|
|
2023-05-04 07:44:49 -05:00
|
|
|
Alias Path = String;
|
2023-05-04 02:27:04 -05:00
|
|
|
|
|
|
|
Structure File {
|
|
|
|
name: String,
|
|
|
|
data: Vector<Byte>,
|
|
|
|
}
|
|
|
|
|
2023-05-04 07:44:49 -05:00
|
|
|
Interface File {
|
2023-05-05 09:15:38 -05:00
|
|
|
Function new Takes(Path) Returns(None);
|
2023-05-04 02:27:04 -05:00
|
|
|
|
|
|
|
// Open in this iteration assumes the file exists
|
2023-05-05 09:15:38 -05:00
|
|
|
Function open Takes(Path) Returns(File);
|
2023-05-04 02:27:04 -05:00
|
|
|
|
2023-05-05 09:15:38 -05:00
|
|
|
Function close Takes(File) Returns(None);
|
2023-05-04 06:19:32 -05:00
|
|
|
}
|