mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Remove unnecessary DebuggerDisplayAttributes
This commit is contained in:
parent
ec38f80066
commit
9a358a4e30
21 changed files with 17 additions and 58 deletions
|
@ -1,10 +1,8 @@
|
||||||
using System.Diagnostics;
|
using LibHac.Common.FixedArrays;
|
||||||
using LibHac.Common.FixedArrays;
|
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Bcat;
|
namespace LibHac.Bcat;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public struct Digest
|
public struct Digest
|
||||||
{
|
{
|
||||||
public Array16<byte> Value;
|
public Array16<byte> Value;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using LibHac.Common.FixedArrays;
|
using LibHac.Common.FixedArrays;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Bcat;
|
namespace LibHac.Bcat;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public struct DirectoryName
|
public struct DirectoryName
|
||||||
{
|
{
|
||||||
private const int MaxSize = 0x20;
|
private const int MaxSize = 0x20;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using LibHac.Common.FixedArrays;
|
using LibHac.Common.FixedArrays;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Bcat;
|
namespace LibHac.Bcat;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public struct FileName
|
public struct FileName
|
||||||
{
|
{
|
||||||
private const int MaxSize = 0x20;
|
private const int MaxSize = 0x20;
|
||||||
|
|
|
@ -10,7 +10,6 @@ namespace LibHac.Common;
|
||||||
/// Represents a buffer of 16 bytes.
|
/// Represents a buffer of 16 bytes.
|
||||||
/// Contains functions that assist with common operations on small buffers.
|
/// Contains functions that assist with common operations on small buffers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 16)]
|
[StructLayout(LayoutKind.Sequential, Size = 16)]
|
||||||
public struct Buffer16
|
public struct Buffer16
|
||||||
{
|
{
|
||||||
|
@ -67,7 +66,6 @@ public struct Buffer16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 32)]
|
[StructLayout(LayoutKind.Sequential, Size = 32)]
|
||||||
public struct Buffer32
|
public struct Buffer32
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
|
@ -8,7 +7,6 @@ namespace LibHac.Common;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A generic 128-bit ID value.
|
/// A generic 128-bit ID value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
||||||
public struct Id128 : IEquatable<Id128>, IComparable<Id128>, IComparable
|
public struct Id128 : IEquatable<Id128>, IComparable<Id128>, IComparable
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
||||||
public struct Key128 : IEquatable<Key128>
|
public struct Key128 : IEquatable<Key128>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -7,7 +6,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public readonly ref struct U8Span
|
public readonly ref struct U8Span
|
||||||
{
|
{
|
||||||
private readonly ReadOnlySpan<byte> _buffer;
|
private readonly ReadOnlySpan<byte> _buffer;
|
||||||
|
@ -51,7 +49,7 @@ public readonly ref struct U8Span
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
return _buffer[i];
|
return _buffer[i];
|
||||||
#else
|
#else
|
||||||
return Unsafe.Add(ref MemoryMarshal.GetReference(_buffer), i);
|
return Unsafe.Add(ref MemoryMarshal.GetReference(_buffer), i);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -7,7 +6,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public readonly ref struct U8SpanMutable
|
public readonly ref struct U8SpanMutable
|
||||||
{
|
{
|
||||||
private readonly Span<byte> _buffer;
|
private readonly Span<byte> _buffer;
|
||||||
|
@ -50,7 +48,7 @@ public readonly ref struct U8SpanMutable
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
return _buffer[i];
|
return _buffer[i];
|
||||||
#else
|
#else
|
||||||
return Unsafe.Add(ref MemoryMarshal.GetReference(_buffer), i);
|
return Unsafe.Add(ref MemoryMarshal.GetReference(_buffer), i);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public readonly struct U8String
|
public readonly struct U8String
|
||||||
{
|
{
|
||||||
private readonly byte[] _buffer;
|
private readonly byte[] _buffer;
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Buffers;
|
using System.Buffers;
|
||||||
using System.Buffers.Text;
|
using System.Buffers.Text;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using LibHac.Diag;
|
using LibHac.Diag;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public ref struct U8StringBuilder
|
public ref struct U8StringBuilder
|
||||||
{
|
{
|
||||||
private const int NullTerminatorLength = 1;
|
private const int NullTerminatorLength = 1;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Common;
|
namespace LibHac.Common;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public readonly struct U8StringMutable
|
public readonly struct U8StringMutable
|
||||||
{
|
{
|
||||||
private readonly byte[] _buffer;
|
private readonly byte[] _buffer;
|
||||||
|
|
|
@ -8,7 +8,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Crypto;
|
namespace LibHac.Crypto;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
||||||
public struct AesKey
|
public struct AesKey
|
||||||
{
|
{
|
||||||
|
@ -36,7 +35,6 @@ public struct AesKey
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
||||||
public struct AesXtsKey
|
public struct AesXtsKey
|
||||||
{
|
{
|
||||||
|
@ -64,7 +62,6 @@ public struct AesXtsKey
|
||||||
public readonly override string ToString() => DataRo.ToHexString();
|
public readonly override string ToString() => DataRo.ToHexString();
|
||||||
}
|
}
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
||||||
public struct AesIv
|
public struct AesIv
|
||||||
{
|
{
|
||||||
|
@ -91,7 +88,6 @@ public struct AesIv
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
[StructLayout(LayoutKind.Explicit, Size = Size)]
|
||||||
public struct AesCmac
|
public struct AesCmac
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
using System.Diagnostics;
|
using LibHac.Common.FixedArrays;
|
||||||
using LibHac.Common.FixedArrays;
|
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Fs;
|
namespace LibHac.Fs;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public struct EncryptionSeed
|
public struct EncryptionSeed
|
||||||
{
|
{
|
||||||
public Array16<byte> Value;
|
public Array16<byte> Value;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Common.FixedArrays;
|
using LibHac.Common.FixedArrays;
|
||||||
|
|
||||||
namespace LibHac.Fs;
|
namespace LibHac.Fs;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
internal struct MountName
|
internal struct MountName
|
||||||
{
|
{
|
||||||
private Array16<byte> _nameArray;
|
private Array16<byte> _nameArray;
|
||||||
|
|
|
@ -8,7 +8,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.FsSrv.Sf;
|
namespace LibHac.FsSrv.Sf;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = MaxLength + 1)]
|
[StructLayout(LayoutKind.Sequential, Size = MaxLength + 1)]
|
||||||
public readonly struct FspPath
|
public readonly struct FspPath
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.FsSystem;
|
namespace LibHac.FsSystem;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = MaxLength + 1)]
|
[StructLayout(LayoutKind.Sequential, Size = MaxLength + 1)]
|
||||||
public struct FsPath
|
public struct FsPath
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,6 @@ using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Lr;
|
namespace LibHac.Lr;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = PathTool.EntryNameLengthMax)]
|
[StructLayout(LayoutKind.Sequential, Size = PathTool.EntryNameLengthMax)]
|
||||||
public struct Path
|
public struct Path
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Ncm;
|
namespace LibHac.Ncm;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
||||||
public struct ContentId : IEquatable<ContentId>, IComparable<ContentId>, IComparable
|
public struct ContentId : IEquatable<ContentId>, IComparable<ContentId>, IComparable
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Ncm;
|
namespace LibHac.Ncm;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
||||||
public struct PlaceHolderId : IEquatable<PlaceHolderId>, IComparable<PlaceHolderId>, IComparable
|
public struct PlaceHolderId : IEquatable<PlaceHolderId>, IComparable<PlaceHolderId>, IComparable
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Sm;
|
namespace LibHac.Sm;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
public readonly struct ServiceName : IEquatable<ServiceName>
|
public readonly struct ServiceName : IEquatable<ServiceName>
|
||||||
{
|
{
|
||||||
private const int MaxLength = 8;
|
private const int MaxLength = 8;
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Spl;
|
namespace LibHac.Spl;
|
||||||
|
|
||||||
[DebuggerDisplay("{ToString()}")]
|
|
||||||
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
[StructLayout(LayoutKind.Sequential, Size = 0x10)]
|
||||||
public struct AccessKey : IEquatable<AccessKey>
|
public struct AccessKey : IEquatable<AccessKey>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue