Function flush [src]
Prototype
pub fn flush(self: *File) FlushError!void Parameters
self: *File Possible Errors
Source
pub fn flush(self: *File) FlushError!void {
switch (self._flush(self)) {
.success => {},
.device_error => return Error.DeviceError,
.volume_corrupted => return Error.VolumeCorrupted,
.write_protected => return Error.WriteProtected,
.access_denied => return Error.AccessDenied,
.volume_full => return Error.VolumeFull,
else => |status| return uefi.unexpectedStatus(status),
}
}