// Serialize serialize message into bytes.
Serialize serialize message into bytes.
// Serialize serialize message into bytes .
func (t *ThriftMessageCodec) Serialize(msg thrift.TStruct) (b []byte, err error) {
	t.tb.Reset()
	if err = msg.Write(t.tProt); err != nil {
		return
	}
	b = append(b, t.tb.Bytes()...)
	return
}
func ( t * ThriftMessageCodec ) Serialize ( msg thrift . TStruct ) ( b [ ] byte , err error ) { t . tb . Reset ( ) if err = msg . Write ( t . tProt ) ; err != nil { return } b = append ( b , t . tb . Bytes ( ) ... ) return }
Serialize serialize message into bytes.
Serialize serialize message into bytes .