From 34dd98df049a0a6ecf661ff9fdfe31292688040a Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 28 Dec 2013 09:33:09 -0500 Subject: 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. --- xv/xv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xv') diff --git a/xv/xv.go b/xv/xv.go index 5eefe77..d79a594 100644 --- a/xv/xv.go +++ b/xv/xv.go @@ -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]) -- cgit v1.2.3