diff --git a/Library/DiscUtils.Streams/Util/EncodingExtensions.cs b/Library/DiscUtils.Streams/Util/EncodingExtensions.cs index 765b103e1..cf353a95a 100644 --- a/Library/DiscUtils.Streams/Util/EncodingExtensions.cs +++ b/Library/DiscUtils.Streams/Util/EncodingExtensions.cs @@ -35,6 +35,7 @@ public static int GetBytes(this Encoding encoding, ReadOnlySpan chars, Spa ArrayPool.Shared.Return(str); } } + public static string GetString(this Encoding encoding, ReadOnlySpan bytes) { var buffer = ArrayPool.Shared.Rent(bytes.Length);