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
MaxSize method should estimate the maximum possible size of the struct that needs to be decoded taking into account limits (such as max for the collections). Any value that overflows such MaxSize for the type must be discarded with an error.
Size method is an optimization for Encode. Without Size consumer is forced to allocate memory multiple times for a single encode operation, instead it should be possible to use the following code.
MaxSize method should estimate the maximum possible size of the struct that needs to be decoded taking into account limits (such as
max
for the collections). Any value that overflows such MaxSize for the type must be discarded with an error.Size method is an optimization for Encode. Without Size consumer is forced to allocate memory multiple times for a single encode operation, instead it should be possible to use the following code.
The text was updated successfully, but these errors were encountered: