include context in serialization

This commit is contained in:
Qrakhen 2025-11-09 12:51:19 +01:00
parent fb4b062fc9
commit 0b350ff4ec
1 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,6 @@
using Qrakhen.Qamp.Core.Values.Objects;
using System.Runtime.InteropServices;
using Qrakhen.Qamp.Core.Collections;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
using System.Text;
namespace Qrakhen.Qamp.Core.Values;
@ -59,6 +56,8 @@ public readonly struct Ptr
byte[] bytes;
if (obj is Function function) {
bytes = function.Serialize();
} else if (obj is Context context) {
bytes = context.Function.Serialize();
} else {
continue;
}