From 89e20eb231c87dbea8fbebc7cd268d5cf6ae0f38 Mon Sep 17 00:00:00 2001
From: alnkesq <141324281+alnkesq@users.noreply.github.com>
Date: Sun, 12 Jan 2025 19:03:32 +0100
Subject: [PATCH] Bring back byte[] overload for binary compatibility
---
src/FishyFlip/Tools/CarDecoder.cs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/FishyFlip/Tools/CarDecoder.cs b/src/FishyFlip/Tools/CarDecoder.cs
index d3cc232b..01bba17c 100644
--- a/src/FishyFlip/Tools/CarDecoder.cs
+++ b/src/FishyFlip/Tools/CarDecoder.cs
@@ -25,6 +25,16 @@ public static class CarDecoder
///
/// Byte Array.
/// Fires when a car file is decoded.
+ public static void DecodeCar(byte[] bytes, OnCarDecoded? progress = null)
+ {
+ DecodeCar(bytes.AsSpan(), progress);
+ }
+
+ ///
+ /// Decodes CAR ReadOnlySpan.
+ ///
+ /// Bytes to decode.
+ /// Fires when a car file is decoded.
public static void DecodeCar(ReadOnlySpan bytes, OnCarDecoded? progress = null)
{
int bytesLength = bytes.Length;