Rename Dagger to Voile.

This commit is contained in:
2024-02-06 19:25:36 +01:00
parent 9ec3dcfcca
commit 255545cb71
76 changed files with 158 additions and 158 deletions

View File

@@ -0,0 +1,30 @@
using System.Text.Json.Serialization;
namespace Voile
{
public abstract class Resource : IDisposable
{
public string? Path { get => _path; set => _path = value; }
[JsonIgnore]
public byte[]? Buffer { get => _buffer; set => _buffer = value; }
[JsonIgnore]
public long BufferSize { get; set; }
public Resource(string path, byte[] buffer)
{
_path = path;
_buffer = buffer;
}
public void Dispose()
{
Buffer = null;
Path = null;
}
private string? _path;
private byte[]? _buffer;
}
}