MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / File

Class File

edit/src/main.rs:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34struct File {
35 original: Vec<u8>, // Original contents of the file
36 add: Vec<u8>, // Add buffer
37 pieces: Vec<Piece>,
38 cursor: Cursor,
39 path: String,
40 changed: bool, // Changed since last save?
41
42 // Describe where to begin display
43 display_start: Cursor,
44 line_start: usize,
45}
46
47impl File {
48 /// Open an existing file. If it doesn't exist return an empty File.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected