func (z *Struct) EncodeMsg(en *msgp.Writer) (err error) {
	err = en.Append(0x86, 0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31)
	if err != nil {
		return err
	}
	err = en.WriteString(z.Field1)
	if err != nil {
		return
	}
	err = en.Append(0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32)
	if err != nil {
		return err
	}
	err = en.WriteInt(z.Field2)
	if err != nil {
		return
	}
	err = en.Append(0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x33)
	if err != nil {
		return err
	}
	err = en.WriteArrayHeader(uint32(len(z.Field3)))
	if err != nil {
		return
	}
	for xvk := range z.Field3 {
		err = en.WriteString(z.Field3[xvk])
		if err != nil {
			return
		}
	}
	err = en.Append(0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x34)
	if err != nil {
		return err
	}
	err = en.WriteUint64(z.Field4)
	if err != nil {
		return
	}
	err = en.Append(0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x35)
	if err != nil {
		return err
	}
	err = en.WriteString(z.Field5)
	if err != nil {
		return
	}
	err = en.Append(0xa6, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x36)
	if err != nil {
		return err
	}
	err = en.WriteString(z.Field6)
	if err != nil {
		return
	}
	return
}
EncodeMsg implements msgp.Encodable
package test
import (
	"github.com/tinylib/msgp/msgp"
)
func (z *Struct) DecodeMsg(dc *msgp.Reader) (err error) {
	var field []byte
	_ = field
	var isz uint32
	isz, err = dc.ReadMapHeader()
	if err != nil {
		return
	}
	for isz > 0 {
		isz--
		field, err = dc.ReadMapKeyPtr()
		if err != nil {
			return
		}
		switch msgp.UnsafeString(field) {
		case "Field1":
			z.Field1, err = dc.ReadString()
			if err != nil {
				return
			}
		case "Field2":
			z.Field2, err = dc.ReadInt()
			if err != nil {
				return
			}
		case "Field3":
			var xsz uint32
			xsz, err = dc.ReadArrayHeader()
			if err != nil {
				return
			}
			if cap(z.Field3) >= int(xsz) {
				z.Field3 = z.Field3[:xsz]
			} else {
				z.Field3 = make([]string, xsz)
			}
			for xvk := range z.Field3 {
				z.Field3[xvk], err = dc.ReadString()
				if err != nil {
					return
				}
			}
		case "Field4":
			z.Field4, err = dc.ReadUint64()
			if err != nil {
				return
			}
		case "Field5":
			z.Field5, err = dc.ReadString()
			if err != nil {
				return
			}
		case "Field6":
			z.Field6, err = dc.ReadString()
			if err != nil {
				return
			}
		default:
			err = dc.Skip()
			if err != nil {
				return
			}
		}
	}
	return
}