mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Add parameterless constructor to Fs.Path
We can finally initialize Fs.Path correctly thanks to C# 10 allowing parameterless constructors on structs
This commit is contained in:
parent
edfa3de6cb
commit
80e7466840
@ -177,6 +177,14 @@ public ref struct Path
|
||||
private int _writeBufferLength;
|
||||
private bool _isNormalized;
|
||||
|
||||
public Path()
|
||||
{
|
||||
_string = EmptyPath;
|
||||
_writeBuffer = null;
|
||||
_writeBufferLength = 0;
|
||||
_isNormalized = false;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
byte[] writeBuffer = Shared.Move(ref _writeBuffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user