diff --git a/PrettyConsole/Utils.cs b/PrettyConsole/Utils.cs index 5526af0..9e664b1 100755 --- a/PrettyConsole/Utils.cs +++ b/PrettyConsole/Utils.cs @@ -5,14 +5,14 @@ namespace PrettyConsole; /// /// A static class containing utility methods /// -public static class Utils { +internal static class Utils { /// /// Returns a formatted percentage string, i.e 0,5:##0.##% /// /// /// /// - public static ReadOnlySpan FormatPercentage(double percentage, Span buffer) { + internal static ReadOnlySpan FormatPercentage(double percentage, Span buffer) { percentage.TryFormat(buffer, out int bytesWritten, "0,5:##0.##%"); return buffer.Slice(0, bytesWritten); } @@ -21,5 +21,5 @@ public static ReadOnlySpan FormatPercentage(double percentage, Span /// Rents a memory owner from the shared memory pool /// /// The minimum length - public static IMemoryOwner ObtainMemory(int length) => MemoryPool.Shared.Rent(length); + internal static IMemoryOwner ObtainMemory(int length) => MemoryPool.Shared.Rent(length); }