Comments (2)
嗯 似乎是解析ILWrapperType的地方有问题,没解析到RealType,明天处理
from nino.
List 内容为值类型测试OK了,但是为class时有问题。
[Serializable]
[NinoSerialize]
public partial class PlayerLoginState2
{
[NinoMember(0)] public List<DeviceInfo> TestService;
public PlayerLoginState2()
{
TestService = new List<DeviceInfo>();
}
}
[Serializable]
[NinoSerialize]
public partial class DeviceInfo
{
[NinoMember(0)] public int Type;
[NinoMember(1)] public string UID;
public DeviceInfo()
{
Type = (int)SystemInfo.deviceType;
UID = SystemInfo.deviceUniqueIdentifier;
}
}
PlayerLoginState2 playerLoginState22 = new PlayerLoginState2();
playerLoginState22.TestService.Add(new DeviceInfo());
string test1 = Convert.ToBase64String(Nino.Serialization.Serializer.Serialize(playerLoginState22));
Log.Print("test1 Serialize OK >" + test1);
var test2 = Nino.Serialization.Deserializer.Deserialize<PlayerLoginState2>(Convert.FromBase64String(test1));
Log.Print("test1 Deserialize OK");
报错
[JEngine] test1 Serialize OK >42bkZuZWMTOzNDCxNDHTtTQ2NtQ1dXa21HU0N3TSNXIyMzFwMTU0czQwBAA=
InvalidOperationException: The type ILRuntime.Runtime.Intepreter.ILTypeInstance does not have NinoSerialize attribute or custom importer/exporter
==========ILRuntime StackTrace==========
IL_0382: call !0 System.Runtime.CompilerServices.TaskAwaiter`1<System.Boolean>::GetResult()
HotUpdateScripts.Lcgames.LoadingPanel/<AccountLogin>d__17.MoveNext() (at HotUpdateScripts/Lcgames/UI/Panel/Base/LoadingPanel.cs:16707566)
--- End of stack trace from previous location ---
IL_0091: call !!0 Nino.Serialization.Deserializer::Deserialize<HotUpdateScripts.Lcgames.PlayerLoginState2>(System.Byte[],System.Text.Encoding,Nino.Serialization.CompressOption)
from nino.
Related Issues (20)
- v1.2.0 ilruntime报错 无法使用 HOT 1
- 嵌套使用生成失败
- NinoSerialize(false)序列化报错
- 是否可以支持序列化分组
- 反序列化错误 HOT 11
- 使用Jengine 在热更工程里无法反序列化
- 序列化成功后 反序列化失败 HOT 1
- 反序列化Int类型错误 HOT 3
- -1 (int类型)会被Nino 反序列化成 255
- unsigned serialization error
- 能不能支持一下多态 HOT 6
- 在je热更新工程 有问题
- 热更工程 反序列化失败 HOT 1
- 多态相关,抽象类直接作为成员变量时序列化报错 HOT 8
- 1.0.21版本32位内存对齐有问题
- 自定收集标签[NinoSerialize(true)]下的忽略标签[NinoIgnore]无效。 HOT 1
- 模拟器下,对齐导致安卓闪退问题。
- 疑似有内存泄漏 HOT 6
- 请教 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nino.