mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +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
1 changed files with 8 additions and 0 deletions
|
@ -177,6 +177,14 @@ public ref struct Path
|
||||||
private int _writeBufferLength;
|
private int _writeBufferLength;
|
||||||
private bool _isNormalized;
|
private bool _isNormalized;
|
||||||
|
|
||||||
|
public Path()
|
||||||
|
{
|
||||||
|
_string = EmptyPath;
|
||||||
|
_writeBuffer = null;
|
||||||
|
_writeBufferLength = 0;
|
||||||
|
_isNormalized = false;
|
||||||
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
byte[] writeBuffer = Shared.Move(ref _writeBuffer);
|
byte[] writeBuffer = Shared.Move(ref _writeBuffer);
|
||||||
|
|
Loading…
Reference in a new issue