CacheFileFormat
A class in Root.Township, Alta.Static.
File format for cached data such as instruction sets: a byte count followed by the stream's words.
- Listed in World, chunks and saving
- Inherits or implements
IAltaFileFormat
Constructors
| Member | What it is |
|---|---|
CacheFileFormat() | Creates a CacheFileFormat from data and byteCount. |
CacheFileFormat(uint[] data, uint byteCount) | Creates a CacheFileFormat from data and byteCount. |
Fields
4 private and internal fields
Properties
Methods
| Member | What it is |
|---|---|
override IAltaFileFormat Clone() | Returns the same object and bumps the use count. |
override void Dispose() | Lowers the use count; frees nothing. |
async Task<T> ReadAsAsync<T>(T into) | Reads the version, then deserializes the data into the given ICacheable. |
override void ReadFrom(FileInfo info, Stream stream) | Loads the byte count and data from a file stream. |
void Write(ICacheable input) | Serializes an ICacheable with its version in front and keeps the result. |
override void WriteTo(Stream stream, CancellationToken token) | Writes the byte count and data to a file stream. |