mirror of
https://github.com/aaru-dps/Aaru.Helpers.git
synced 2025-12-16 19:24:35 +00:00
Annotate or remove unused elements.
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Aaru.Helpers;
|
namespace Aaru.Helpers;
|
||||||
@@ -39,6 +40,8 @@ namespace Aaru.Helpers;
|
|||||||
/// Converts base data types to an array of bytes, and an array of bytes to base data types. All info taken from
|
/// Converts base data types to an array of bytes, and an array of bytes to base data types. All info taken from
|
||||||
/// the meta data of System.BitConverter. This implementation allows for Endianness consideration.
|
/// the meta data of System.BitConverter. This implementation allows for Endianness consideration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[SuppressMessage("ReSharper", "UnusedParameter.Global")]
|
||||||
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||||
public static class BigEndianBitConverter
|
public static class BigEndianBitConverter
|
||||||
{
|
{
|
||||||
/// <summary>Converts the specified double-precision floating point number to a 64-bit signed integer.</summary>
|
/// <summary>Converts the specified double-precision floating point number to a 64-bit signed integer.</summary>
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ using System.Runtime.InteropServices;
|
|||||||
namespace Aaru.Helpers;
|
namespace Aaru.Helpers;
|
||||||
|
|
||||||
/// <summary>Provides methods to marshal binary data into C# structs</summary>
|
/// <summary>Provides methods to marshal binary data into C# structs</summary>
|
||||||
|
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
|
||||||
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||||
public static class Marshal
|
public static class Marshal
|
||||||
{
|
{
|
||||||
/// <summary>Returns the size of an unmanaged type in bytes.</summary>
|
/// <summary>Returns the size of an unmanaged type in bytes.</summary>
|
||||||
|
|||||||
@@ -31,11 +31,13 @@
|
|||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Aaru.Helpers;
|
namespace Aaru.Helpers;
|
||||||
|
|
||||||
/// <summary>Helper operations to work with strings</summary>
|
/// <summary>Helper operations to work with strings</summary>
|
||||||
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||||
public static class StringHandlers
|
public static class StringHandlers
|
||||||
{
|
{
|
||||||
/// <summary>Converts a null-terminated (aka C string) ASCII byte array to a C# string</summary>
|
/// <summary>Converts a null-terminated (aka C string) ASCII byte array to a C# string</summary>
|
||||||
|
|||||||
@@ -30,11 +30,13 @@
|
|||||||
// Copyright © 2011-2023 Natalia Portillo
|
// Copyright © 2011-2023 Natalia Portillo
|
||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace Aaru.Helpers;
|
namespace Aaru.Helpers;
|
||||||
|
|
||||||
/// <summary>Helper operations to work with swapping endians</summary>
|
/// <summary>Helper operations to work with swapping endians</summary>
|
||||||
|
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||||
public static class Swapping
|
public static class Swapping
|
||||||
{
|
{
|
||||||
/// <summary>Gets the PDP endian equivalent of the given little endian unsigned integer</summary>
|
/// <summary>Gets the PDP endian equivalent of the given little endian unsigned integer</summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user