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
Allow for custom types that are able to marschall themselves.
For example, the following should assume that the type Data in package A has the Size, Marschall and Unmarschall functions and use those to generate code.
struct Person {
Name string
Age A.Data //sizeMarschal
}
It might not be practical for every struct to have a .Size method(for whatever reason) so the following should get the bytes and prefix the length itself.
struct Person {
Name string
Age A.Data //Marschal
}
EDIT: when only the Marschal type is specifiend dont generate a size Method, or only support the sizeMarschal type.
The text was updated successfully, but these errors were encountered:
Allow for custom types that are able to marschall themselves.
For example, the following should assume that the type Data in package A has the Size, Marschall and Unmarschall functions and use those to generate code.
It might not be practical for every struct to have a .Size method(for whatever reason) so the following should get the bytes and prefix the length itself.
EDIT: when only the Marschal type is specifiend dont generate a size Method, or only support the sizeMarschal type.
The text was updated successfully, but these errors were encountered: