diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiSerializer.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiSerializer.cs index 87d9336c2..5b9d599aa 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiSerializer.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/AlgoApiSerializer.cs @@ -8,6 +8,12 @@ namespace AlgoSdk { public static class AlgoApiSerializer { + public static T Deserialize(byte[] bytes, ContentType contentType) + { + using var nativeBytes = new NativeArray(bytes, Allocator.Temp); + return Deserialize(nativeBytes.AsReadOnly(), contentType); + } + public static T Deserialize(NativeArray.ReadOnly bytes, ContentType contentType) { return contentType switch diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Serialization/Json/JsonReader/JsonReader.Object.cs.meta b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Serialization/Json/JsonReader/JsonReader.Object.cs.meta new file mode 100644 index 000000000..95d9ce2a6 --- /dev/null +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/Serialization/Json/JsonReader/JsonReader.Object.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c9d67610463212e41a99b2ab4c3b932b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: