mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fixes in Nca and U8Span
This commit is contained in:
parent
f2f2111729
commit
71824f06dc
3 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ namespace LibHac.Common
|
|||
/// </summary>
|
||||
/// <returns><see langword="true"/> if the span has no buffer.
|
||||
/// Otherwise, <see langword="false"/>.</returns>
|
||||
public bool IsNull() => _buffer.IsEmpty;
|
||||
public unsafe bool IsNull() => (IntPtr)Unsafe.AsPointer(ref MemoryMarshal.GetReference(_buffer)) == IntPtr.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the <see cref="U8Span"/> has no buffer or begins with a null terminator.
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace LibHac.Common
|
|||
/// </summary>
|
||||
/// <returns><see langword="true"/> if the span has no buffer.
|
||||
/// Otherwise, <see langword="false"/>.</returns>
|
||||
public bool IsNull() => _buffer.IsEmpty;
|
||||
public unsafe bool IsNull() => (IntPtr)Unsafe.AsPointer(ref MemoryMarshal.GetReference(_buffer)) == IntPtr.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the <see cref="U8StringMutable"/> has no buffer or begins with a null terminator.
|
||||
|
|
|
@ -557,7 +557,7 @@ namespace LibHac.FsSystem.NcaUtils
|
|||
return new HierarchicalIntegrityVerificationStorage(initInfo, integrityCheckLevel, leaveOpen);
|
||||
}
|
||||
|
||||
public IStorage OpenDecryptedHeaderStorage() => OpenHeaderStorage(true);
|
||||
public IStorage OpenDecryptedHeaderStorage() => OpenHeaderStorage(false);
|
||||
|
||||
public IStorage OpenHeaderStorage(bool openEncrypted)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue