You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, I only have one baseclass
As I serialized it, I cannot understand why it is necessary to wrap a layer of completely meaningless data during serialization
Because I have already specified my baseclass in the code
The first character is always 0A, followed by the length of the packaging
And it is completely incompatible with Google's protobuf.js
ProtoBuf.Serializer.Deserialize<GameObj>[] // This way, there is packaging
ProtoBuf.Serializer.Deserialize<Control>[] //This way, there is not packaging
The arr here is GameObj, so it will be packaged. If it is written separately, it will not be. However, since you have specified the baseclass, there is no need to package the two bytes of 0A+(length+2) that are not used in this layer
So is there any way to remove it?
笔记
双语对照
The text was updated successfully, but these errors were encountered:
As you can see, I only have one baseclass
As I serialized it, I cannot understand why it is necessary to wrap a layer of completely meaningless data during serialization
Because I have already specified my baseclass in the code
The first character is always 0A, followed by the length of the packaging
And it is completely incompatible with Google's protobuf.js
The arr here is GameObj, so it will be packaged. If it is written separately, it will not be. However, since you have specified the baseclass, there is no need to package the two bytes of 0A+(length+2) that are not used in this layer
So is there any way to remove it?
笔记
双语对照
The text was updated successfully, but these errors were encountered: