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:
@@ -886,7 +886,7 @@ func (v ClientMessageEvent) Bytes() []byte {
|
||||
{
|
||||
unionBytes := v.Data.Bytes()
|
||||
copy(buf[b:], unionBytes)
|
||||
b += xgb.Pad(len(unionBytes))
|
||||
b += len(unionBytes)
|
||||
}
|
||||
|
||||
return buf
|
||||
|
||||
Reference in New Issue
Block a user