func (o File) encodeXDR(xw *xdr.Writer) (int, error) { xw.WriteString(o.Name) xw.WriteUint32(o.Flags) xw.WriteUint64(uint64(o.Modified)) xw.WriteUint64(o.Version) xw.WriteUint64(uint64(o.Size)) xw.WriteUint32(uint32(len(o.Blocks))) for i := range o.Blocks { o.Blocks[i].encodeXDR(xw) } xw.WriteBool(o.Suppressed) return xw.Tot(), xw.Error() }