When writing, don't pad the length of bytes produced from inner
structs/unions. Each type should take care of its own padding. Close #14.
This commit is contained in:
@@ -458,7 +458,7 @@ func (v EncodingInfo) Bytes() []byte {
|
||||
{
|
||||
structBytes := v.Rate.Bytes()
|
||||
copy(buf[b:], structBytes)
|
||||
b += xgb.Pad(len(structBytes))
|
||||
b += len(structBytes)
|
||||
}
|
||||
|
||||
copy(buf[b:], v.Name[:v.NameSize])
|
||||
|
||||
Reference in New Issue
Block a user