include context in serialization
This commit is contained in:
parent
fb4b062fc9
commit
0b350ff4ec
|
|
@ -1,9 +1,6 @@
|
||||||
using Qrakhen.Qamp.Core.Values.Objects;
|
using Qrakhen.Qamp.Core.Values.Objects;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Qrakhen.Qamp.Core.Collections;
|
using Qrakhen.Qamp.Core.Collections;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
|
||||||
using System.Security.Cryptography;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace Qrakhen.Qamp.Core.Values;
|
namespace Qrakhen.Qamp.Core.Values;
|
||||||
|
|
||||||
|
|
@ -59,6 +56,8 @@ public readonly struct Ptr
|
||||||
byte[] bytes;
|
byte[] bytes;
|
||||||
if (obj is Function function) {
|
if (obj is Function function) {
|
||||||
bytes = function.Serialize();
|
bytes = function.Serialize();
|
||||||
|
} else if (obj is Context context) {
|
||||||
|
bytes = context.Function.Serialize();
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue