-
|
The StructSerializable doesnt explicitly require to have the struct and i find it hard to make custom logger for structs because of this (i cant get the struct object directly) |
Beta Was this translation helpful? Give feedback.
Answered by
ThadHouse
Jan 18, 2026
Replies: 1 comment
-
|
It doesn’t require it because that wouldn’t actually be useful for anything, because you need the struct definition to construct the object from bytes. And interfaces can’t have static fields or methods. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Raphdf201
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn’t require it because that wouldn’t actually be useful for anything, because you need the struct definition to construct the object from bytes. And interfaces can’t have static fields or methods.