Skip to content

Commit

Permalink
Bring back byte[] overload for binary compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alnkesq committed Jan 12, 2025
1 parent a5f0647 commit 89e20eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/FishyFlip/Tools/CarDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ public static class CarDecoder
/// </summary>
/// <param name="bytes">Byte Array.</param>
/// <param name="progress">Fires when a car file is decoded.</param>
public static void DecodeCar(byte[] bytes, OnCarDecoded? progress = null)
{
DecodeCar(bytes.AsSpan(), progress);
}

/// <summary>
/// Decodes CAR ReadOnlySpan.
/// </summary>
/// <param name="bytes">Bytes to decode.</param>
/// <param name="progress">Fires when a car file is decoded.</param>
public static void DecodeCar(ReadOnlySpan<byte> bytes, OnCarDecoded? progress = null)
{
int bytesLength = bytes.Length;
Expand Down

0 comments on commit 89e20eb

Please sign in to comment.