25 lines
445 B
Plaintext
25 lines
445 B
Plaintext
// core provides lots of useful types like String and Byte
|
|
Use core;
|
|
|
|
Constant VERSION = Make Version {
|
|
major: 1,
|
|
minor: 0,
|
|
patch: 0,
|
|
};
|
|
|
|
Alias Path = String;
|
|
|
|
Structure File {
|
|
name: String,
|
|
data: Vector<Byte>,
|
|
}
|
|
|
|
Interface File {
|
|
Function new Takes(Path) Returns(None);
|
|
|
|
// Open in this iteration assumes the file exists
|
|
Function open Takes(Path) Returns(File);
|
|
|
|
Function close Takes(File) Returns(None);
|
|
}
|