github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/cdc/model/codec/v1/codec_gen.go (about)

     1  package v1
     2  
     3  // Code generated by github.com/tinylib/msgp DO NOT EDIT.
     4  
     5  import (
     6  	"github.com/tinylib/msgp/msgp"
     7  )
     8  
     9  // DecodeMsg implements msgp.Decodable
    10  func (z *Column) DecodeMsg(dc *msgp.Reader) (err error) {
    11  	var field []byte
    12  	_ = field
    13  	var zb0001 uint32
    14  	zb0001, err = dc.ReadMapHeader()
    15  	if err != nil {
    16  		err = msgp.WrapError(err)
    17  		return
    18  	}
    19  	for zb0001 > 0 {
    20  		zb0001--
    21  		field, err = dc.ReadMapKeyPtr()
    22  		if err != nil {
    23  			err = msgp.WrapError(err)
    24  			return
    25  		}
    26  		switch msgp.UnsafeString(field) {
    27  		case "name":
    28  			z.Name, err = dc.ReadString()
    29  			if err != nil {
    30  				err = msgp.WrapError(err, "Name")
    31  				return
    32  			}
    33  		case "type":
    34  			z.Type, err = dc.ReadByte()
    35  			if err != nil {
    36  				err = msgp.WrapError(err, "Type")
    37  				return
    38  			}
    39  		case "charset":
    40  			z.Charset, err = dc.ReadString()
    41  			if err != nil {
    42  				err = msgp.WrapError(err, "Charset")
    43  				return
    44  			}
    45  		case "value":
    46  			z.Value, err = dc.ReadIntf()
    47  			if err != nil {
    48  				err = msgp.WrapError(err, "Value")
    49  				return
    50  			}
    51  		case "ApproximateBytes":
    52  			z.ApproximateBytes, err = dc.ReadInt()
    53  			if err != nil {
    54  				err = msgp.WrapError(err, "ApproximateBytes")
    55  				return
    56  			}
    57  		default:
    58  			err = dc.Skip()
    59  			if err != nil {
    60  				err = msgp.WrapError(err)
    61  				return
    62  			}
    63  		}
    64  	}
    65  	return
    66  }
    67  
    68  // EncodeMsg implements msgp.Encodable
    69  func (z *Column) EncodeMsg(en *msgp.Writer) (err error) {
    70  	// map header, size 5
    71  	// write "name"
    72  	err = en.Append(0x85, 0xa4, 0x6e, 0x61, 0x6d, 0x65)
    73  	if err != nil {
    74  		return
    75  	}
    76  	err = en.WriteString(z.Name)
    77  	if err != nil {
    78  		err = msgp.WrapError(err, "Name")
    79  		return
    80  	}
    81  	// write "type"
    82  	err = en.Append(0xa4, 0x74, 0x79, 0x70, 0x65)
    83  	if err != nil {
    84  		return
    85  	}
    86  	err = en.WriteByte(z.Type)
    87  	if err != nil {
    88  		err = msgp.WrapError(err, "Type")
    89  		return
    90  	}
    91  	// write "charset"
    92  	err = en.Append(0xa7, 0x63, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74)
    93  	if err != nil {
    94  		return
    95  	}
    96  	err = en.WriteString(z.Charset)
    97  	if err != nil {
    98  		err = msgp.WrapError(err, "Charset")
    99  		return
   100  	}
   101  	// write "value"
   102  	err = en.Append(0xa5, 0x76, 0x61, 0x6c, 0x75, 0x65)
   103  	if err != nil {
   104  		return
   105  	}
   106  	err = en.WriteIntf(z.Value)
   107  	if err != nil {
   108  		err = msgp.WrapError(err, "Value")
   109  		return
   110  	}
   111  	// write "ApproximateBytes"
   112  	err = en.Append(0xb0, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73)
   113  	if err != nil {
   114  		return
   115  	}
   116  	err = en.WriteInt(z.ApproximateBytes)
   117  	if err != nil {
   118  		err = msgp.WrapError(err, "ApproximateBytes")
   119  		return
   120  	}
   121  	return
   122  }
   123  
   124  // MarshalMsg implements msgp.Marshaler
   125  func (z *Column) MarshalMsg(b []byte) (o []byte, err error) {
   126  	o = msgp.Require(b, z.Msgsize())
   127  	// map header, size 5
   128  	// string "name"
   129  	o = append(o, 0x85, 0xa4, 0x6e, 0x61, 0x6d, 0x65)
   130  	o = msgp.AppendString(o, z.Name)
   131  	// string "type"
   132  	o = append(o, 0xa4, 0x74, 0x79, 0x70, 0x65)
   133  	o = msgp.AppendByte(o, z.Type)
   134  	// string "charset"
   135  	o = append(o, 0xa7, 0x63, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74)
   136  	o = msgp.AppendString(o, z.Charset)
   137  	// string "value"
   138  	o = append(o, 0xa5, 0x76, 0x61, 0x6c, 0x75, 0x65)
   139  	o, err = msgp.AppendIntf(o, z.Value)
   140  	if err != nil {
   141  		err = msgp.WrapError(err, "Value")
   142  		return
   143  	}
   144  	// string "ApproximateBytes"
   145  	o = append(o, 0xb0, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73)
   146  	o = msgp.AppendInt(o, z.ApproximateBytes)
   147  	return
   148  }
   149  
   150  // UnmarshalMsg implements msgp.Unmarshaler
   151  func (z *Column) UnmarshalMsg(bts []byte) (o []byte, err error) {
   152  	var field []byte
   153  	_ = field
   154  	var zb0001 uint32
   155  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   156  	if err != nil {
   157  		err = msgp.WrapError(err)
   158  		return
   159  	}
   160  	for zb0001 > 0 {
   161  		zb0001--
   162  		field, bts, err = msgp.ReadMapKeyZC(bts)
   163  		if err != nil {
   164  			err = msgp.WrapError(err)
   165  			return
   166  		}
   167  		switch msgp.UnsafeString(field) {
   168  		case "name":
   169  			z.Name, bts, err = msgp.ReadStringBytes(bts)
   170  			if err != nil {
   171  				err = msgp.WrapError(err, "Name")
   172  				return
   173  			}
   174  		case "type":
   175  			z.Type, bts, err = msgp.ReadByteBytes(bts)
   176  			if err != nil {
   177  				err = msgp.WrapError(err, "Type")
   178  				return
   179  			}
   180  		case "charset":
   181  			z.Charset, bts, err = msgp.ReadStringBytes(bts)
   182  			if err != nil {
   183  				err = msgp.WrapError(err, "Charset")
   184  				return
   185  			}
   186  		case "value":
   187  			z.Value, bts, err = msgp.ReadIntfBytes(bts)
   188  			if err != nil {
   189  				err = msgp.WrapError(err, "Value")
   190  				return
   191  			}
   192  		case "ApproximateBytes":
   193  			z.ApproximateBytes, bts, err = msgp.ReadIntBytes(bts)
   194  			if err != nil {
   195  				err = msgp.WrapError(err, "ApproximateBytes")
   196  				return
   197  			}
   198  		default:
   199  			bts, err = msgp.Skip(bts)
   200  			if err != nil {
   201  				err = msgp.WrapError(err)
   202  				return
   203  			}
   204  		}
   205  	}
   206  	o = bts
   207  	return
   208  }
   209  
   210  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   211  func (z *Column) Msgsize() (s int) {
   212  	s = 1 + 5 + msgp.StringPrefixSize + len(z.Name) + 5 + msgp.ByteSize + 8 + msgp.StringPrefixSize + len(z.Charset) + 6 + msgp.GuessSize(z.Value) + 17 + msgp.IntSize
   213  	return
   214  }
   215  
   216  // DecodeMsg implements msgp.Decodable
   217  func (z *DDLEvent) DecodeMsg(dc *msgp.Reader) (err error) {
   218  	var field []byte
   219  	_ = field
   220  	var zb0001 uint32
   221  	zb0001, err = dc.ReadMapHeader()
   222  	if err != nil {
   223  		err = msgp.WrapError(err)
   224  		return
   225  	}
   226  	for zb0001 > 0 {
   227  		zb0001--
   228  		field, err = dc.ReadMapKeyPtr()
   229  		if err != nil {
   230  			err = msgp.WrapError(err)
   231  			return
   232  		}
   233  		switch msgp.UnsafeString(field) {
   234  		case "start-ts":
   235  			z.StartTs, err = dc.ReadUint64()
   236  			if err != nil {
   237  				err = msgp.WrapError(err, "StartTs")
   238  				return
   239  			}
   240  		case "commit-ts":
   241  			z.CommitTs, err = dc.ReadUint64()
   242  			if err != nil {
   243  				err = msgp.WrapError(err, "CommitTs")
   244  				return
   245  			}
   246  		case "query":
   247  			z.Query, err = dc.ReadString()
   248  			if err != nil {
   249  				err = msgp.WrapError(err, "Query")
   250  				return
   251  			}
   252  		default:
   253  			err = dc.Skip()
   254  			if err != nil {
   255  				err = msgp.WrapError(err)
   256  				return
   257  			}
   258  		}
   259  	}
   260  	return
   261  }
   262  
   263  // EncodeMsg implements msgp.Encodable
   264  func (z DDLEvent) EncodeMsg(en *msgp.Writer) (err error) {
   265  	// map header, size 3
   266  	// write "start-ts"
   267  	err = en.Append(0x83, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
   268  	if err != nil {
   269  		return
   270  	}
   271  	err = en.WriteUint64(z.StartTs)
   272  	if err != nil {
   273  		err = msgp.WrapError(err, "StartTs")
   274  		return
   275  	}
   276  	// write "commit-ts"
   277  	err = en.Append(0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
   278  	if err != nil {
   279  		return
   280  	}
   281  	err = en.WriteUint64(z.CommitTs)
   282  	if err != nil {
   283  		err = msgp.WrapError(err, "CommitTs")
   284  		return
   285  	}
   286  	// write "query"
   287  	err = en.Append(0xa5, 0x71, 0x75, 0x65, 0x72, 0x79)
   288  	if err != nil {
   289  		return
   290  	}
   291  	err = en.WriteString(z.Query)
   292  	if err != nil {
   293  		err = msgp.WrapError(err, "Query")
   294  		return
   295  	}
   296  	return
   297  }
   298  
   299  // MarshalMsg implements msgp.Marshaler
   300  func (z DDLEvent) MarshalMsg(b []byte) (o []byte, err error) {
   301  	o = msgp.Require(b, z.Msgsize())
   302  	// map header, size 3
   303  	// string "start-ts"
   304  	o = append(o, 0x83, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
   305  	o = msgp.AppendUint64(o, z.StartTs)
   306  	// string "commit-ts"
   307  	o = append(o, 0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
   308  	o = msgp.AppendUint64(o, z.CommitTs)
   309  	// string "query"
   310  	o = append(o, 0xa5, 0x71, 0x75, 0x65, 0x72, 0x79)
   311  	o = msgp.AppendString(o, z.Query)
   312  	return
   313  }
   314  
   315  // UnmarshalMsg implements msgp.Unmarshaler
   316  func (z *DDLEvent) UnmarshalMsg(bts []byte) (o []byte, err error) {
   317  	var field []byte
   318  	_ = field
   319  	var zb0001 uint32
   320  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   321  	if err != nil {
   322  		err = msgp.WrapError(err)
   323  		return
   324  	}
   325  	for zb0001 > 0 {
   326  		zb0001--
   327  		field, bts, err = msgp.ReadMapKeyZC(bts)
   328  		if err != nil {
   329  			err = msgp.WrapError(err)
   330  			return
   331  		}
   332  		switch msgp.UnsafeString(field) {
   333  		case "start-ts":
   334  			z.StartTs, bts, err = msgp.ReadUint64Bytes(bts)
   335  			if err != nil {
   336  				err = msgp.WrapError(err, "StartTs")
   337  				return
   338  			}
   339  		case "commit-ts":
   340  			z.CommitTs, bts, err = msgp.ReadUint64Bytes(bts)
   341  			if err != nil {
   342  				err = msgp.WrapError(err, "CommitTs")
   343  				return
   344  			}
   345  		case "query":
   346  			z.Query, bts, err = msgp.ReadStringBytes(bts)
   347  			if err != nil {
   348  				err = msgp.WrapError(err, "Query")
   349  				return
   350  			}
   351  		default:
   352  			bts, err = msgp.Skip(bts)
   353  			if err != nil {
   354  				err = msgp.WrapError(err)
   355  				return
   356  			}
   357  		}
   358  	}
   359  	o = bts
   360  	return
   361  }
   362  
   363  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   364  func (z DDLEvent) Msgsize() (s int) {
   365  	s = 1 + 9 + msgp.Uint64Size + 10 + msgp.Uint64Size + 6 + msgp.StringPrefixSize + len(z.Query)
   366  	return
   367  }
   368  
   369  // DecodeMsg implements msgp.Decodable
   370  func (z *RedoColumn) DecodeMsg(dc *msgp.Reader) (err error) {
   371  	var field []byte
   372  	_ = field
   373  	var zb0001 uint32
   374  	zb0001, err = dc.ReadMapHeader()
   375  	if err != nil {
   376  		err = msgp.WrapError(err)
   377  		return
   378  	}
   379  	for zb0001 > 0 {
   380  		zb0001--
   381  		field, err = dc.ReadMapKeyPtr()
   382  		if err != nil {
   383  			err = msgp.WrapError(err)
   384  			return
   385  		}
   386  		switch msgp.UnsafeString(field) {
   387  		case "column":
   388  			if dc.IsNil() {
   389  				err = dc.ReadNil()
   390  				if err != nil {
   391  					err = msgp.WrapError(err, "Column")
   392  					return
   393  				}
   394  				z.Column = nil
   395  			} else {
   396  				if z.Column == nil {
   397  					z.Column = new(Column)
   398  				}
   399  				err = z.Column.DecodeMsg(dc)
   400  				if err != nil {
   401  					err = msgp.WrapError(err, "Column")
   402  					return
   403  				}
   404  			}
   405  		case "flag":
   406  			z.Flag, err = dc.ReadUint64()
   407  			if err != nil {
   408  				err = msgp.WrapError(err, "Flag")
   409  				return
   410  			}
   411  		default:
   412  			err = dc.Skip()
   413  			if err != nil {
   414  				err = msgp.WrapError(err)
   415  				return
   416  			}
   417  		}
   418  	}
   419  	return
   420  }
   421  
   422  // EncodeMsg implements msgp.Encodable
   423  func (z *RedoColumn) EncodeMsg(en *msgp.Writer) (err error) {
   424  	// map header, size 2
   425  	// write "column"
   426  	err = en.Append(0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
   427  	if err != nil {
   428  		return
   429  	}
   430  	if z.Column == nil {
   431  		err = en.WriteNil()
   432  		if err != nil {
   433  			return
   434  		}
   435  	} else {
   436  		err = z.Column.EncodeMsg(en)
   437  		if err != nil {
   438  			err = msgp.WrapError(err, "Column")
   439  			return
   440  		}
   441  	}
   442  	// write "flag"
   443  	err = en.Append(0xa4, 0x66, 0x6c, 0x61, 0x67)
   444  	if err != nil {
   445  		return
   446  	}
   447  	err = en.WriteUint64(z.Flag)
   448  	if err != nil {
   449  		err = msgp.WrapError(err, "Flag")
   450  		return
   451  	}
   452  	return
   453  }
   454  
   455  // MarshalMsg implements msgp.Marshaler
   456  func (z *RedoColumn) MarshalMsg(b []byte) (o []byte, err error) {
   457  	o = msgp.Require(b, z.Msgsize())
   458  	// map header, size 2
   459  	// string "column"
   460  	o = append(o, 0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
   461  	if z.Column == nil {
   462  		o = msgp.AppendNil(o)
   463  	} else {
   464  		o, err = z.Column.MarshalMsg(o)
   465  		if err != nil {
   466  			err = msgp.WrapError(err, "Column")
   467  			return
   468  		}
   469  	}
   470  	// string "flag"
   471  	o = append(o, 0xa4, 0x66, 0x6c, 0x61, 0x67)
   472  	o = msgp.AppendUint64(o, z.Flag)
   473  	return
   474  }
   475  
   476  // UnmarshalMsg implements msgp.Unmarshaler
   477  func (z *RedoColumn) UnmarshalMsg(bts []byte) (o []byte, err error) {
   478  	var field []byte
   479  	_ = field
   480  	var zb0001 uint32
   481  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   482  	if err != nil {
   483  		err = msgp.WrapError(err)
   484  		return
   485  	}
   486  	for zb0001 > 0 {
   487  		zb0001--
   488  		field, bts, err = msgp.ReadMapKeyZC(bts)
   489  		if err != nil {
   490  			err = msgp.WrapError(err)
   491  			return
   492  		}
   493  		switch msgp.UnsafeString(field) {
   494  		case "column":
   495  			if msgp.IsNil(bts) {
   496  				bts, err = msgp.ReadNilBytes(bts)
   497  				if err != nil {
   498  					return
   499  				}
   500  				z.Column = nil
   501  			} else {
   502  				if z.Column == nil {
   503  					z.Column = new(Column)
   504  				}
   505  				bts, err = z.Column.UnmarshalMsg(bts)
   506  				if err != nil {
   507  					err = msgp.WrapError(err, "Column")
   508  					return
   509  				}
   510  			}
   511  		case "flag":
   512  			z.Flag, bts, err = msgp.ReadUint64Bytes(bts)
   513  			if err != nil {
   514  				err = msgp.WrapError(err, "Flag")
   515  				return
   516  			}
   517  		default:
   518  			bts, err = msgp.Skip(bts)
   519  			if err != nil {
   520  				err = msgp.WrapError(err)
   521  				return
   522  			}
   523  		}
   524  	}
   525  	o = bts
   526  	return
   527  }
   528  
   529  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   530  func (z *RedoColumn) Msgsize() (s int) {
   531  	s = 1 + 7
   532  	if z.Column == nil {
   533  		s += msgp.NilSize
   534  	} else {
   535  		s += z.Column.Msgsize()
   536  	}
   537  	s += 5 + msgp.Uint64Size
   538  	return
   539  }
   540  
   541  // DecodeMsg implements msgp.Decodable
   542  func (z *RedoDDLEvent) DecodeMsg(dc *msgp.Reader) (err error) {
   543  	var field []byte
   544  	_ = field
   545  	var zb0001 uint32
   546  	zb0001, err = dc.ReadMapHeader()
   547  	if err != nil {
   548  		err = msgp.WrapError(err)
   549  		return
   550  	}
   551  	for zb0001 > 0 {
   552  		zb0001--
   553  		field, err = dc.ReadMapKeyPtr()
   554  		if err != nil {
   555  			err = msgp.WrapError(err)
   556  			return
   557  		}
   558  		switch msgp.UnsafeString(field) {
   559  		case "ddl":
   560  			if dc.IsNil() {
   561  				err = dc.ReadNil()
   562  				if err != nil {
   563  					err = msgp.WrapError(err, "DDL")
   564  					return
   565  				}
   566  				z.DDL = nil
   567  			} else {
   568  				if z.DDL == nil {
   569  					z.DDL = new(DDLEvent)
   570  				}
   571  				var zb0002 uint32
   572  				zb0002, err = dc.ReadMapHeader()
   573  				if err != nil {
   574  					err = msgp.WrapError(err, "DDL")
   575  					return
   576  				}
   577  				for zb0002 > 0 {
   578  					zb0002--
   579  					field, err = dc.ReadMapKeyPtr()
   580  					if err != nil {
   581  						err = msgp.WrapError(err, "DDL")
   582  						return
   583  					}
   584  					switch msgp.UnsafeString(field) {
   585  					case "start-ts":
   586  						z.DDL.StartTs, err = dc.ReadUint64()
   587  						if err != nil {
   588  							err = msgp.WrapError(err, "DDL", "StartTs")
   589  							return
   590  						}
   591  					case "commit-ts":
   592  						z.DDL.CommitTs, err = dc.ReadUint64()
   593  						if err != nil {
   594  							err = msgp.WrapError(err, "DDL", "CommitTs")
   595  							return
   596  						}
   597  					case "query":
   598  						z.DDL.Query, err = dc.ReadString()
   599  						if err != nil {
   600  							err = msgp.WrapError(err, "DDL", "Query")
   601  							return
   602  						}
   603  					default:
   604  						err = dc.Skip()
   605  						if err != nil {
   606  							err = msgp.WrapError(err, "DDL")
   607  							return
   608  						}
   609  					}
   610  				}
   611  			}
   612  		case "type":
   613  			z.Type, err = dc.ReadByte()
   614  			if err != nil {
   615  				err = msgp.WrapError(err, "Type")
   616  				return
   617  			}
   618  		default:
   619  			err = dc.Skip()
   620  			if err != nil {
   621  				err = msgp.WrapError(err)
   622  				return
   623  			}
   624  		}
   625  	}
   626  	return
   627  }
   628  
   629  // EncodeMsg implements msgp.Encodable
   630  func (z *RedoDDLEvent) EncodeMsg(en *msgp.Writer) (err error) {
   631  	// map header, size 2
   632  	// write "ddl"
   633  	err = en.Append(0x82, 0xa3, 0x64, 0x64, 0x6c)
   634  	if err != nil {
   635  		return
   636  	}
   637  	if z.DDL == nil {
   638  		err = en.WriteNil()
   639  		if err != nil {
   640  			return
   641  		}
   642  	} else {
   643  		// map header, size 3
   644  		// write "start-ts"
   645  		err = en.Append(0x83, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
   646  		if err != nil {
   647  			return
   648  		}
   649  		err = en.WriteUint64(z.DDL.StartTs)
   650  		if err != nil {
   651  			err = msgp.WrapError(err, "DDL", "StartTs")
   652  			return
   653  		}
   654  		// write "commit-ts"
   655  		err = en.Append(0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
   656  		if err != nil {
   657  			return
   658  		}
   659  		err = en.WriteUint64(z.DDL.CommitTs)
   660  		if err != nil {
   661  			err = msgp.WrapError(err, "DDL", "CommitTs")
   662  			return
   663  		}
   664  		// write "query"
   665  		err = en.Append(0xa5, 0x71, 0x75, 0x65, 0x72, 0x79)
   666  		if err != nil {
   667  			return
   668  		}
   669  		err = en.WriteString(z.DDL.Query)
   670  		if err != nil {
   671  			err = msgp.WrapError(err, "DDL", "Query")
   672  			return
   673  		}
   674  	}
   675  	// write "type"
   676  	err = en.Append(0xa4, 0x74, 0x79, 0x70, 0x65)
   677  	if err != nil {
   678  		return
   679  	}
   680  	err = en.WriteByte(z.Type)
   681  	if err != nil {
   682  		err = msgp.WrapError(err, "Type")
   683  		return
   684  	}
   685  	return
   686  }
   687  
   688  // MarshalMsg implements msgp.Marshaler
   689  func (z *RedoDDLEvent) MarshalMsg(b []byte) (o []byte, err error) {
   690  	o = msgp.Require(b, z.Msgsize())
   691  	// map header, size 2
   692  	// string "ddl"
   693  	o = append(o, 0x82, 0xa3, 0x64, 0x64, 0x6c)
   694  	if z.DDL == nil {
   695  		o = msgp.AppendNil(o)
   696  	} else {
   697  		// map header, size 3
   698  		// string "start-ts"
   699  		o = append(o, 0x83, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
   700  		o = msgp.AppendUint64(o, z.DDL.StartTs)
   701  		// string "commit-ts"
   702  		o = append(o, 0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
   703  		o = msgp.AppendUint64(o, z.DDL.CommitTs)
   704  		// string "query"
   705  		o = append(o, 0xa5, 0x71, 0x75, 0x65, 0x72, 0x79)
   706  		o = msgp.AppendString(o, z.DDL.Query)
   707  	}
   708  	// string "type"
   709  	o = append(o, 0xa4, 0x74, 0x79, 0x70, 0x65)
   710  	o = msgp.AppendByte(o, z.Type)
   711  	return
   712  }
   713  
   714  // UnmarshalMsg implements msgp.Unmarshaler
   715  func (z *RedoDDLEvent) UnmarshalMsg(bts []byte) (o []byte, err error) {
   716  	var field []byte
   717  	_ = field
   718  	var zb0001 uint32
   719  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   720  	if err != nil {
   721  		err = msgp.WrapError(err)
   722  		return
   723  	}
   724  	for zb0001 > 0 {
   725  		zb0001--
   726  		field, bts, err = msgp.ReadMapKeyZC(bts)
   727  		if err != nil {
   728  			err = msgp.WrapError(err)
   729  			return
   730  		}
   731  		switch msgp.UnsafeString(field) {
   732  		case "ddl":
   733  			if msgp.IsNil(bts) {
   734  				bts, err = msgp.ReadNilBytes(bts)
   735  				if err != nil {
   736  					return
   737  				}
   738  				z.DDL = nil
   739  			} else {
   740  				if z.DDL == nil {
   741  					z.DDL = new(DDLEvent)
   742  				}
   743  				var zb0002 uint32
   744  				zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
   745  				if err != nil {
   746  					err = msgp.WrapError(err, "DDL")
   747  					return
   748  				}
   749  				for zb0002 > 0 {
   750  					zb0002--
   751  					field, bts, err = msgp.ReadMapKeyZC(bts)
   752  					if err != nil {
   753  						err = msgp.WrapError(err, "DDL")
   754  						return
   755  					}
   756  					switch msgp.UnsafeString(field) {
   757  					case "start-ts":
   758  						z.DDL.StartTs, bts, err = msgp.ReadUint64Bytes(bts)
   759  						if err != nil {
   760  							err = msgp.WrapError(err, "DDL", "StartTs")
   761  							return
   762  						}
   763  					case "commit-ts":
   764  						z.DDL.CommitTs, bts, err = msgp.ReadUint64Bytes(bts)
   765  						if err != nil {
   766  							err = msgp.WrapError(err, "DDL", "CommitTs")
   767  							return
   768  						}
   769  					case "query":
   770  						z.DDL.Query, bts, err = msgp.ReadStringBytes(bts)
   771  						if err != nil {
   772  							err = msgp.WrapError(err, "DDL", "Query")
   773  							return
   774  						}
   775  					default:
   776  						bts, err = msgp.Skip(bts)
   777  						if err != nil {
   778  							err = msgp.WrapError(err, "DDL")
   779  							return
   780  						}
   781  					}
   782  				}
   783  			}
   784  		case "type":
   785  			z.Type, bts, err = msgp.ReadByteBytes(bts)
   786  			if err != nil {
   787  				err = msgp.WrapError(err, "Type")
   788  				return
   789  			}
   790  		default:
   791  			bts, err = msgp.Skip(bts)
   792  			if err != nil {
   793  				err = msgp.WrapError(err)
   794  				return
   795  			}
   796  		}
   797  	}
   798  	o = bts
   799  	return
   800  }
   801  
   802  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
   803  func (z *RedoDDLEvent) Msgsize() (s int) {
   804  	s = 1 + 4
   805  	if z.DDL == nil {
   806  		s += msgp.NilSize
   807  	} else {
   808  		s += 1 + 9 + msgp.Uint64Size + 10 + msgp.Uint64Size + 6 + msgp.StringPrefixSize + len(z.DDL.Query)
   809  	}
   810  	s += 5 + msgp.ByteSize
   811  	return
   812  }
   813  
   814  // DecodeMsg implements msgp.Decodable
   815  func (z *RedoLog) DecodeMsg(dc *msgp.Reader) (err error) {
   816  	var field []byte
   817  	_ = field
   818  	var zb0001 uint32
   819  	zb0001, err = dc.ReadMapHeader()
   820  	if err != nil {
   821  		err = msgp.WrapError(err)
   822  		return
   823  	}
   824  	for zb0001 > 0 {
   825  		zb0001--
   826  		field, err = dc.ReadMapKeyPtr()
   827  		if err != nil {
   828  			err = msgp.WrapError(err)
   829  			return
   830  		}
   831  		switch msgp.UnsafeString(field) {
   832  		case "row":
   833  			if dc.IsNil() {
   834  				err = dc.ReadNil()
   835  				if err != nil {
   836  					err = msgp.WrapError(err, "RedoRow")
   837  					return
   838  				}
   839  				z.RedoRow = nil
   840  			} else {
   841  				if z.RedoRow == nil {
   842  					z.RedoRow = new(RedoRowChangedEvent)
   843  				}
   844  				err = z.RedoRow.DecodeMsg(dc)
   845  				if err != nil {
   846  					err = msgp.WrapError(err, "RedoRow")
   847  					return
   848  				}
   849  			}
   850  		case "ddl":
   851  			if dc.IsNil() {
   852  				err = dc.ReadNil()
   853  				if err != nil {
   854  					err = msgp.WrapError(err, "RedoDDL")
   855  					return
   856  				}
   857  				z.RedoDDL = nil
   858  			} else {
   859  				if z.RedoDDL == nil {
   860  					z.RedoDDL = new(RedoDDLEvent)
   861  				}
   862  				err = z.RedoDDL.DecodeMsg(dc)
   863  				if err != nil {
   864  					err = msgp.WrapError(err, "RedoDDL")
   865  					return
   866  				}
   867  			}
   868  		case "type":
   869  			{
   870  				var zb0002 int
   871  				zb0002, err = dc.ReadInt()
   872  				if err != nil {
   873  					err = msgp.WrapError(err, "Type")
   874  					return
   875  				}
   876  				z.Type = RedoLogType(zb0002)
   877  			}
   878  		default:
   879  			err = dc.Skip()
   880  			if err != nil {
   881  				err = msgp.WrapError(err)
   882  				return
   883  			}
   884  		}
   885  	}
   886  	return
   887  }
   888  
   889  // EncodeMsg implements msgp.Encodable
   890  func (z *RedoLog) EncodeMsg(en *msgp.Writer) (err error) {
   891  	// map header, size 3
   892  	// write "row"
   893  	err = en.Append(0x83, 0xa3, 0x72, 0x6f, 0x77)
   894  	if err != nil {
   895  		return
   896  	}
   897  	if z.RedoRow == nil {
   898  		err = en.WriteNil()
   899  		if err != nil {
   900  			return
   901  		}
   902  	} else {
   903  		err = z.RedoRow.EncodeMsg(en)
   904  		if err != nil {
   905  			err = msgp.WrapError(err, "RedoRow")
   906  			return
   907  		}
   908  	}
   909  	// write "ddl"
   910  	err = en.Append(0xa3, 0x64, 0x64, 0x6c)
   911  	if err != nil {
   912  		return
   913  	}
   914  	if z.RedoDDL == nil {
   915  		err = en.WriteNil()
   916  		if err != nil {
   917  			return
   918  		}
   919  	} else {
   920  		err = z.RedoDDL.EncodeMsg(en)
   921  		if err != nil {
   922  			err = msgp.WrapError(err, "RedoDDL")
   923  			return
   924  		}
   925  	}
   926  	// write "type"
   927  	err = en.Append(0xa4, 0x74, 0x79, 0x70, 0x65)
   928  	if err != nil {
   929  		return
   930  	}
   931  	err = en.WriteInt(int(z.Type))
   932  	if err != nil {
   933  		err = msgp.WrapError(err, "Type")
   934  		return
   935  	}
   936  	return
   937  }
   938  
   939  // MarshalMsg implements msgp.Marshaler
   940  func (z *RedoLog) MarshalMsg(b []byte) (o []byte, err error) {
   941  	o = msgp.Require(b, z.Msgsize())
   942  	// map header, size 3
   943  	// string "row"
   944  	o = append(o, 0x83, 0xa3, 0x72, 0x6f, 0x77)
   945  	if z.RedoRow == nil {
   946  		o = msgp.AppendNil(o)
   947  	} else {
   948  		o, err = z.RedoRow.MarshalMsg(o)
   949  		if err != nil {
   950  			err = msgp.WrapError(err, "RedoRow")
   951  			return
   952  		}
   953  	}
   954  	// string "ddl"
   955  	o = append(o, 0xa3, 0x64, 0x64, 0x6c)
   956  	if z.RedoDDL == nil {
   957  		o = msgp.AppendNil(o)
   958  	} else {
   959  		o, err = z.RedoDDL.MarshalMsg(o)
   960  		if err != nil {
   961  			err = msgp.WrapError(err, "RedoDDL")
   962  			return
   963  		}
   964  	}
   965  	// string "type"
   966  	o = append(o, 0xa4, 0x74, 0x79, 0x70, 0x65)
   967  	o = msgp.AppendInt(o, int(z.Type))
   968  	return
   969  }
   970  
   971  // UnmarshalMsg implements msgp.Unmarshaler
   972  func (z *RedoLog) UnmarshalMsg(bts []byte) (o []byte, err error) {
   973  	var field []byte
   974  	_ = field
   975  	var zb0001 uint32
   976  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
   977  	if err != nil {
   978  		err = msgp.WrapError(err)
   979  		return
   980  	}
   981  	for zb0001 > 0 {
   982  		zb0001--
   983  		field, bts, err = msgp.ReadMapKeyZC(bts)
   984  		if err != nil {
   985  			err = msgp.WrapError(err)
   986  			return
   987  		}
   988  		switch msgp.UnsafeString(field) {
   989  		case "row":
   990  			if msgp.IsNil(bts) {
   991  				bts, err = msgp.ReadNilBytes(bts)
   992  				if err != nil {
   993  					return
   994  				}
   995  				z.RedoRow = nil
   996  			} else {
   997  				if z.RedoRow == nil {
   998  					z.RedoRow = new(RedoRowChangedEvent)
   999  				}
  1000  				bts, err = z.RedoRow.UnmarshalMsg(bts)
  1001  				if err != nil {
  1002  					err = msgp.WrapError(err, "RedoRow")
  1003  					return
  1004  				}
  1005  			}
  1006  		case "ddl":
  1007  			if msgp.IsNil(bts) {
  1008  				bts, err = msgp.ReadNilBytes(bts)
  1009  				if err != nil {
  1010  					return
  1011  				}
  1012  				z.RedoDDL = nil
  1013  			} else {
  1014  				if z.RedoDDL == nil {
  1015  					z.RedoDDL = new(RedoDDLEvent)
  1016  				}
  1017  				bts, err = z.RedoDDL.UnmarshalMsg(bts)
  1018  				if err != nil {
  1019  					err = msgp.WrapError(err, "RedoDDL")
  1020  					return
  1021  				}
  1022  			}
  1023  		case "type":
  1024  			{
  1025  				var zb0002 int
  1026  				zb0002, bts, err = msgp.ReadIntBytes(bts)
  1027  				if err != nil {
  1028  					err = msgp.WrapError(err, "Type")
  1029  					return
  1030  				}
  1031  				z.Type = RedoLogType(zb0002)
  1032  			}
  1033  		default:
  1034  			bts, err = msgp.Skip(bts)
  1035  			if err != nil {
  1036  				err = msgp.WrapError(err)
  1037  				return
  1038  			}
  1039  		}
  1040  	}
  1041  	o = bts
  1042  	return
  1043  }
  1044  
  1045  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1046  func (z *RedoLog) Msgsize() (s int) {
  1047  	s = 1 + 4
  1048  	if z.RedoRow == nil {
  1049  		s += msgp.NilSize
  1050  	} else {
  1051  		s += z.RedoRow.Msgsize()
  1052  	}
  1053  	s += 4
  1054  	if z.RedoDDL == nil {
  1055  		s += msgp.NilSize
  1056  	} else {
  1057  		s += z.RedoDDL.Msgsize()
  1058  	}
  1059  	s += 5 + msgp.IntSize
  1060  	return
  1061  }
  1062  
  1063  // DecodeMsg implements msgp.Decodable
  1064  func (z *RedoLogType) DecodeMsg(dc *msgp.Reader) (err error) {
  1065  	{
  1066  		var zb0001 int
  1067  		zb0001, err = dc.ReadInt()
  1068  		if err != nil {
  1069  			err = msgp.WrapError(err)
  1070  			return
  1071  		}
  1072  		(*z) = RedoLogType(zb0001)
  1073  	}
  1074  	return
  1075  }
  1076  
  1077  // EncodeMsg implements msgp.Encodable
  1078  func (z RedoLogType) EncodeMsg(en *msgp.Writer) (err error) {
  1079  	err = en.WriteInt(int(z))
  1080  	if err != nil {
  1081  		err = msgp.WrapError(err)
  1082  		return
  1083  	}
  1084  	return
  1085  }
  1086  
  1087  // MarshalMsg implements msgp.Marshaler
  1088  func (z RedoLogType) MarshalMsg(b []byte) (o []byte, err error) {
  1089  	o = msgp.Require(b, z.Msgsize())
  1090  	o = msgp.AppendInt(o, int(z))
  1091  	return
  1092  }
  1093  
  1094  // UnmarshalMsg implements msgp.Unmarshaler
  1095  func (z *RedoLogType) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1096  	{
  1097  		var zb0001 int
  1098  		zb0001, bts, err = msgp.ReadIntBytes(bts)
  1099  		if err != nil {
  1100  			err = msgp.WrapError(err)
  1101  			return
  1102  		}
  1103  		(*z) = RedoLogType(zb0001)
  1104  	}
  1105  	o = bts
  1106  	return
  1107  }
  1108  
  1109  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1110  func (z RedoLogType) Msgsize() (s int) {
  1111  	s = msgp.IntSize
  1112  	return
  1113  }
  1114  
  1115  // DecodeMsg implements msgp.Decodable
  1116  func (z *RedoRowChangedEvent) DecodeMsg(dc *msgp.Reader) (err error) {
  1117  	var field []byte
  1118  	_ = field
  1119  	var zb0001 uint32
  1120  	zb0001, err = dc.ReadMapHeader()
  1121  	if err != nil {
  1122  		err = msgp.WrapError(err)
  1123  		return
  1124  	}
  1125  	for zb0001 > 0 {
  1126  		zb0001--
  1127  		field, err = dc.ReadMapKeyPtr()
  1128  		if err != nil {
  1129  			err = msgp.WrapError(err)
  1130  			return
  1131  		}
  1132  		switch msgp.UnsafeString(field) {
  1133  		case "row":
  1134  			if dc.IsNil() {
  1135  				err = dc.ReadNil()
  1136  				if err != nil {
  1137  					err = msgp.WrapError(err, "Row")
  1138  					return
  1139  				}
  1140  				z.Row = nil
  1141  			} else {
  1142  				if z.Row == nil {
  1143  					z.Row = new(RowChangedEvent)
  1144  				}
  1145  				err = z.Row.DecodeMsg(dc)
  1146  				if err != nil {
  1147  					err = msgp.WrapError(err, "Row")
  1148  					return
  1149  				}
  1150  			}
  1151  		case "pre-columns":
  1152  			var zb0002 uint32
  1153  			zb0002, err = dc.ReadArrayHeader()
  1154  			if err != nil {
  1155  				err = msgp.WrapError(err, "PreColumns")
  1156  				return
  1157  			}
  1158  			if cap(z.PreColumns) >= int(zb0002) {
  1159  				z.PreColumns = (z.PreColumns)[:zb0002]
  1160  			} else {
  1161  				z.PreColumns = make([]*RedoColumn, zb0002)
  1162  			}
  1163  			for za0001 := range z.PreColumns {
  1164  				if dc.IsNil() {
  1165  					err = dc.ReadNil()
  1166  					if err != nil {
  1167  						err = msgp.WrapError(err, "PreColumns", za0001)
  1168  						return
  1169  					}
  1170  					z.PreColumns[za0001] = nil
  1171  				} else {
  1172  					if z.PreColumns[za0001] == nil {
  1173  						z.PreColumns[za0001] = new(RedoColumn)
  1174  					}
  1175  					var zb0003 uint32
  1176  					zb0003, err = dc.ReadMapHeader()
  1177  					if err != nil {
  1178  						err = msgp.WrapError(err, "PreColumns", za0001)
  1179  						return
  1180  					}
  1181  					for zb0003 > 0 {
  1182  						zb0003--
  1183  						field, err = dc.ReadMapKeyPtr()
  1184  						if err != nil {
  1185  							err = msgp.WrapError(err, "PreColumns", za0001)
  1186  							return
  1187  						}
  1188  						switch msgp.UnsafeString(field) {
  1189  						case "column":
  1190  							if dc.IsNil() {
  1191  								err = dc.ReadNil()
  1192  								if err != nil {
  1193  									err = msgp.WrapError(err, "PreColumns", za0001, "Column")
  1194  									return
  1195  								}
  1196  								z.PreColumns[za0001].Column = nil
  1197  							} else {
  1198  								if z.PreColumns[za0001].Column == nil {
  1199  									z.PreColumns[za0001].Column = new(Column)
  1200  								}
  1201  								err = z.PreColumns[za0001].Column.DecodeMsg(dc)
  1202  								if err != nil {
  1203  									err = msgp.WrapError(err, "PreColumns", za0001, "Column")
  1204  									return
  1205  								}
  1206  							}
  1207  						case "flag":
  1208  							z.PreColumns[za0001].Flag, err = dc.ReadUint64()
  1209  							if err != nil {
  1210  								err = msgp.WrapError(err, "PreColumns", za0001, "Flag")
  1211  								return
  1212  							}
  1213  						default:
  1214  							err = dc.Skip()
  1215  							if err != nil {
  1216  								err = msgp.WrapError(err, "PreColumns", za0001)
  1217  								return
  1218  							}
  1219  						}
  1220  					}
  1221  				}
  1222  			}
  1223  		case "columns":
  1224  			var zb0004 uint32
  1225  			zb0004, err = dc.ReadArrayHeader()
  1226  			if err != nil {
  1227  				err = msgp.WrapError(err, "Columns")
  1228  				return
  1229  			}
  1230  			if cap(z.Columns) >= int(zb0004) {
  1231  				z.Columns = (z.Columns)[:zb0004]
  1232  			} else {
  1233  				z.Columns = make([]*RedoColumn, zb0004)
  1234  			}
  1235  			for za0002 := range z.Columns {
  1236  				if dc.IsNil() {
  1237  					err = dc.ReadNil()
  1238  					if err != nil {
  1239  						err = msgp.WrapError(err, "Columns", za0002)
  1240  						return
  1241  					}
  1242  					z.Columns[za0002] = nil
  1243  				} else {
  1244  					if z.Columns[za0002] == nil {
  1245  						z.Columns[za0002] = new(RedoColumn)
  1246  					}
  1247  					var zb0005 uint32
  1248  					zb0005, err = dc.ReadMapHeader()
  1249  					if err != nil {
  1250  						err = msgp.WrapError(err, "Columns", za0002)
  1251  						return
  1252  					}
  1253  					for zb0005 > 0 {
  1254  						zb0005--
  1255  						field, err = dc.ReadMapKeyPtr()
  1256  						if err != nil {
  1257  							err = msgp.WrapError(err, "Columns", za0002)
  1258  							return
  1259  						}
  1260  						switch msgp.UnsafeString(field) {
  1261  						case "column":
  1262  							if dc.IsNil() {
  1263  								err = dc.ReadNil()
  1264  								if err != nil {
  1265  									err = msgp.WrapError(err, "Columns", za0002, "Column")
  1266  									return
  1267  								}
  1268  								z.Columns[za0002].Column = nil
  1269  							} else {
  1270  								if z.Columns[za0002].Column == nil {
  1271  									z.Columns[za0002].Column = new(Column)
  1272  								}
  1273  								err = z.Columns[za0002].Column.DecodeMsg(dc)
  1274  								if err != nil {
  1275  									err = msgp.WrapError(err, "Columns", za0002, "Column")
  1276  									return
  1277  								}
  1278  							}
  1279  						case "flag":
  1280  							z.Columns[za0002].Flag, err = dc.ReadUint64()
  1281  							if err != nil {
  1282  								err = msgp.WrapError(err, "Columns", za0002, "Flag")
  1283  								return
  1284  							}
  1285  						default:
  1286  							err = dc.Skip()
  1287  							if err != nil {
  1288  								err = msgp.WrapError(err, "Columns", za0002)
  1289  								return
  1290  							}
  1291  						}
  1292  					}
  1293  				}
  1294  			}
  1295  		default:
  1296  			err = dc.Skip()
  1297  			if err != nil {
  1298  				err = msgp.WrapError(err)
  1299  				return
  1300  			}
  1301  		}
  1302  	}
  1303  	return
  1304  }
  1305  
  1306  // EncodeMsg implements msgp.Encodable
  1307  func (z *RedoRowChangedEvent) EncodeMsg(en *msgp.Writer) (err error) {
  1308  	// map header, size 3
  1309  	// write "row"
  1310  	err = en.Append(0x83, 0xa3, 0x72, 0x6f, 0x77)
  1311  	if err != nil {
  1312  		return
  1313  	}
  1314  	if z.Row == nil {
  1315  		err = en.WriteNil()
  1316  		if err != nil {
  1317  			return
  1318  		}
  1319  	} else {
  1320  		err = z.Row.EncodeMsg(en)
  1321  		if err != nil {
  1322  			err = msgp.WrapError(err, "Row")
  1323  			return
  1324  		}
  1325  	}
  1326  	// write "pre-columns"
  1327  	err = en.Append(0xab, 0x70, 0x72, 0x65, 0x2d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1328  	if err != nil {
  1329  		return
  1330  	}
  1331  	err = en.WriteArrayHeader(uint32(len(z.PreColumns)))
  1332  	if err != nil {
  1333  		err = msgp.WrapError(err, "PreColumns")
  1334  		return
  1335  	}
  1336  	for za0001 := range z.PreColumns {
  1337  		if z.PreColumns[za0001] == nil {
  1338  			err = en.WriteNil()
  1339  			if err != nil {
  1340  				return
  1341  			}
  1342  		} else {
  1343  			// map header, size 2
  1344  			// write "column"
  1345  			err = en.Append(0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
  1346  			if err != nil {
  1347  				return
  1348  			}
  1349  			if z.PreColumns[za0001].Column == nil {
  1350  				err = en.WriteNil()
  1351  				if err != nil {
  1352  					return
  1353  				}
  1354  			} else {
  1355  				err = z.PreColumns[za0001].Column.EncodeMsg(en)
  1356  				if err != nil {
  1357  					err = msgp.WrapError(err, "PreColumns", za0001, "Column")
  1358  					return
  1359  				}
  1360  			}
  1361  			// write "flag"
  1362  			err = en.Append(0xa4, 0x66, 0x6c, 0x61, 0x67)
  1363  			if err != nil {
  1364  				return
  1365  			}
  1366  			err = en.WriteUint64(z.PreColumns[za0001].Flag)
  1367  			if err != nil {
  1368  				err = msgp.WrapError(err, "PreColumns", za0001, "Flag")
  1369  				return
  1370  			}
  1371  		}
  1372  	}
  1373  	// write "columns"
  1374  	err = en.Append(0xa7, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1375  	if err != nil {
  1376  		return
  1377  	}
  1378  	err = en.WriteArrayHeader(uint32(len(z.Columns)))
  1379  	if err != nil {
  1380  		err = msgp.WrapError(err, "Columns")
  1381  		return
  1382  	}
  1383  	for za0002 := range z.Columns {
  1384  		if z.Columns[za0002] == nil {
  1385  			err = en.WriteNil()
  1386  			if err != nil {
  1387  				return
  1388  			}
  1389  		} else {
  1390  			// map header, size 2
  1391  			// write "column"
  1392  			err = en.Append(0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
  1393  			if err != nil {
  1394  				return
  1395  			}
  1396  			if z.Columns[za0002].Column == nil {
  1397  				err = en.WriteNil()
  1398  				if err != nil {
  1399  					return
  1400  				}
  1401  			} else {
  1402  				err = z.Columns[za0002].Column.EncodeMsg(en)
  1403  				if err != nil {
  1404  					err = msgp.WrapError(err, "Columns", za0002, "Column")
  1405  					return
  1406  				}
  1407  			}
  1408  			// write "flag"
  1409  			err = en.Append(0xa4, 0x66, 0x6c, 0x61, 0x67)
  1410  			if err != nil {
  1411  				return
  1412  			}
  1413  			err = en.WriteUint64(z.Columns[za0002].Flag)
  1414  			if err != nil {
  1415  				err = msgp.WrapError(err, "Columns", za0002, "Flag")
  1416  				return
  1417  			}
  1418  		}
  1419  	}
  1420  	return
  1421  }
  1422  
  1423  // MarshalMsg implements msgp.Marshaler
  1424  func (z *RedoRowChangedEvent) MarshalMsg(b []byte) (o []byte, err error) {
  1425  	o = msgp.Require(b, z.Msgsize())
  1426  	// map header, size 3
  1427  	// string "row"
  1428  	o = append(o, 0x83, 0xa3, 0x72, 0x6f, 0x77)
  1429  	if z.Row == nil {
  1430  		o = msgp.AppendNil(o)
  1431  	} else {
  1432  		o, err = z.Row.MarshalMsg(o)
  1433  		if err != nil {
  1434  			err = msgp.WrapError(err, "Row")
  1435  			return
  1436  		}
  1437  	}
  1438  	// string "pre-columns"
  1439  	o = append(o, 0xab, 0x70, 0x72, 0x65, 0x2d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1440  	o = msgp.AppendArrayHeader(o, uint32(len(z.PreColumns)))
  1441  	for za0001 := range z.PreColumns {
  1442  		if z.PreColumns[za0001] == nil {
  1443  			o = msgp.AppendNil(o)
  1444  		} else {
  1445  			// map header, size 2
  1446  			// string "column"
  1447  			o = append(o, 0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
  1448  			if z.PreColumns[za0001].Column == nil {
  1449  				o = msgp.AppendNil(o)
  1450  			} else {
  1451  				o, err = z.PreColumns[za0001].Column.MarshalMsg(o)
  1452  				if err != nil {
  1453  					err = msgp.WrapError(err, "PreColumns", za0001, "Column")
  1454  					return
  1455  				}
  1456  			}
  1457  			// string "flag"
  1458  			o = append(o, 0xa4, 0x66, 0x6c, 0x61, 0x67)
  1459  			o = msgp.AppendUint64(o, z.PreColumns[za0001].Flag)
  1460  		}
  1461  	}
  1462  	// string "columns"
  1463  	o = append(o, 0xa7, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1464  	o = msgp.AppendArrayHeader(o, uint32(len(z.Columns)))
  1465  	for za0002 := range z.Columns {
  1466  		if z.Columns[za0002] == nil {
  1467  			o = msgp.AppendNil(o)
  1468  		} else {
  1469  			// map header, size 2
  1470  			// string "column"
  1471  			o = append(o, 0x82, 0xa6, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e)
  1472  			if z.Columns[za0002].Column == nil {
  1473  				o = msgp.AppendNil(o)
  1474  			} else {
  1475  				o, err = z.Columns[za0002].Column.MarshalMsg(o)
  1476  				if err != nil {
  1477  					err = msgp.WrapError(err, "Columns", za0002, "Column")
  1478  					return
  1479  				}
  1480  			}
  1481  			// string "flag"
  1482  			o = append(o, 0xa4, 0x66, 0x6c, 0x61, 0x67)
  1483  			o = msgp.AppendUint64(o, z.Columns[za0002].Flag)
  1484  		}
  1485  	}
  1486  	return
  1487  }
  1488  
  1489  // UnmarshalMsg implements msgp.Unmarshaler
  1490  func (z *RedoRowChangedEvent) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1491  	var field []byte
  1492  	_ = field
  1493  	var zb0001 uint32
  1494  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  1495  	if err != nil {
  1496  		err = msgp.WrapError(err)
  1497  		return
  1498  	}
  1499  	for zb0001 > 0 {
  1500  		zb0001--
  1501  		field, bts, err = msgp.ReadMapKeyZC(bts)
  1502  		if err != nil {
  1503  			err = msgp.WrapError(err)
  1504  			return
  1505  		}
  1506  		switch msgp.UnsafeString(field) {
  1507  		case "row":
  1508  			if msgp.IsNil(bts) {
  1509  				bts, err = msgp.ReadNilBytes(bts)
  1510  				if err != nil {
  1511  					return
  1512  				}
  1513  				z.Row = nil
  1514  			} else {
  1515  				if z.Row == nil {
  1516  					z.Row = new(RowChangedEvent)
  1517  				}
  1518  				bts, err = z.Row.UnmarshalMsg(bts)
  1519  				if err != nil {
  1520  					err = msgp.WrapError(err, "Row")
  1521  					return
  1522  				}
  1523  			}
  1524  		case "pre-columns":
  1525  			var zb0002 uint32
  1526  			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1527  			if err != nil {
  1528  				err = msgp.WrapError(err, "PreColumns")
  1529  				return
  1530  			}
  1531  			if cap(z.PreColumns) >= int(zb0002) {
  1532  				z.PreColumns = (z.PreColumns)[:zb0002]
  1533  			} else {
  1534  				z.PreColumns = make([]*RedoColumn, zb0002)
  1535  			}
  1536  			for za0001 := range z.PreColumns {
  1537  				if msgp.IsNil(bts) {
  1538  					bts, err = msgp.ReadNilBytes(bts)
  1539  					if err != nil {
  1540  						return
  1541  					}
  1542  					z.PreColumns[za0001] = nil
  1543  				} else {
  1544  					if z.PreColumns[za0001] == nil {
  1545  						z.PreColumns[za0001] = new(RedoColumn)
  1546  					}
  1547  					var zb0003 uint32
  1548  					zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
  1549  					if err != nil {
  1550  						err = msgp.WrapError(err, "PreColumns", za0001)
  1551  						return
  1552  					}
  1553  					for zb0003 > 0 {
  1554  						zb0003--
  1555  						field, bts, err = msgp.ReadMapKeyZC(bts)
  1556  						if err != nil {
  1557  							err = msgp.WrapError(err, "PreColumns", za0001)
  1558  							return
  1559  						}
  1560  						switch msgp.UnsafeString(field) {
  1561  						case "column":
  1562  							if msgp.IsNil(bts) {
  1563  								bts, err = msgp.ReadNilBytes(bts)
  1564  								if err != nil {
  1565  									return
  1566  								}
  1567  								z.PreColumns[za0001].Column = nil
  1568  							} else {
  1569  								if z.PreColumns[za0001].Column == nil {
  1570  									z.PreColumns[za0001].Column = new(Column)
  1571  								}
  1572  								bts, err = z.PreColumns[za0001].Column.UnmarshalMsg(bts)
  1573  								if err != nil {
  1574  									err = msgp.WrapError(err, "PreColumns", za0001, "Column")
  1575  									return
  1576  								}
  1577  							}
  1578  						case "flag":
  1579  							z.PreColumns[za0001].Flag, bts, err = msgp.ReadUint64Bytes(bts)
  1580  							if err != nil {
  1581  								err = msgp.WrapError(err, "PreColumns", za0001, "Flag")
  1582  								return
  1583  							}
  1584  						default:
  1585  							bts, err = msgp.Skip(bts)
  1586  							if err != nil {
  1587  								err = msgp.WrapError(err, "PreColumns", za0001)
  1588  								return
  1589  							}
  1590  						}
  1591  					}
  1592  				}
  1593  			}
  1594  		case "columns":
  1595  			var zb0004 uint32
  1596  			zb0004, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1597  			if err != nil {
  1598  				err = msgp.WrapError(err, "Columns")
  1599  				return
  1600  			}
  1601  			if cap(z.Columns) >= int(zb0004) {
  1602  				z.Columns = (z.Columns)[:zb0004]
  1603  			} else {
  1604  				z.Columns = make([]*RedoColumn, zb0004)
  1605  			}
  1606  			for za0002 := range z.Columns {
  1607  				if msgp.IsNil(bts) {
  1608  					bts, err = msgp.ReadNilBytes(bts)
  1609  					if err != nil {
  1610  						return
  1611  					}
  1612  					z.Columns[za0002] = nil
  1613  				} else {
  1614  					if z.Columns[za0002] == nil {
  1615  						z.Columns[za0002] = new(RedoColumn)
  1616  					}
  1617  					var zb0005 uint32
  1618  					zb0005, bts, err = msgp.ReadMapHeaderBytes(bts)
  1619  					if err != nil {
  1620  						err = msgp.WrapError(err, "Columns", za0002)
  1621  						return
  1622  					}
  1623  					for zb0005 > 0 {
  1624  						zb0005--
  1625  						field, bts, err = msgp.ReadMapKeyZC(bts)
  1626  						if err != nil {
  1627  							err = msgp.WrapError(err, "Columns", za0002)
  1628  							return
  1629  						}
  1630  						switch msgp.UnsafeString(field) {
  1631  						case "column":
  1632  							if msgp.IsNil(bts) {
  1633  								bts, err = msgp.ReadNilBytes(bts)
  1634  								if err != nil {
  1635  									return
  1636  								}
  1637  								z.Columns[za0002].Column = nil
  1638  							} else {
  1639  								if z.Columns[za0002].Column == nil {
  1640  									z.Columns[za0002].Column = new(Column)
  1641  								}
  1642  								bts, err = z.Columns[za0002].Column.UnmarshalMsg(bts)
  1643  								if err != nil {
  1644  									err = msgp.WrapError(err, "Columns", za0002, "Column")
  1645  									return
  1646  								}
  1647  							}
  1648  						case "flag":
  1649  							z.Columns[za0002].Flag, bts, err = msgp.ReadUint64Bytes(bts)
  1650  							if err != nil {
  1651  								err = msgp.WrapError(err, "Columns", za0002, "Flag")
  1652  								return
  1653  							}
  1654  						default:
  1655  							bts, err = msgp.Skip(bts)
  1656  							if err != nil {
  1657  								err = msgp.WrapError(err, "Columns", za0002)
  1658  								return
  1659  							}
  1660  						}
  1661  					}
  1662  				}
  1663  			}
  1664  		default:
  1665  			bts, err = msgp.Skip(bts)
  1666  			if err != nil {
  1667  				err = msgp.WrapError(err)
  1668  				return
  1669  			}
  1670  		}
  1671  	}
  1672  	o = bts
  1673  	return
  1674  }
  1675  
  1676  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1677  func (z *RedoRowChangedEvent) Msgsize() (s int) {
  1678  	s = 1 + 4
  1679  	if z.Row == nil {
  1680  		s += msgp.NilSize
  1681  	} else {
  1682  		s += z.Row.Msgsize()
  1683  	}
  1684  	s += 12 + msgp.ArrayHeaderSize
  1685  	for za0001 := range z.PreColumns {
  1686  		if z.PreColumns[za0001] == nil {
  1687  			s += msgp.NilSize
  1688  		} else {
  1689  			s += 1 + 7
  1690  			if z.PreColumns[za0001].Column == nil {
  1691  				s += msgp.NilSize
  1692  			} else {
  1693  				s += z.PreColumns[za0001].Column.Msgsize()
  1694  			}
  1695  			s += 5 + msgp.Uint64Size
  1696  		}
  1697  	}
  1698  	s += 8 + msgp.ArrayHeaderSize
  1699  	for za0002 := range z.Columns {
  1700  		if z.Columns[za0002] == nil {
  1701  			s += msgp.NilSize
  1702  		} else {
  1703  			s += 1 + 7
  1704  			if z.Columns[za0002].Column == nil {
  1705  				s += msgp.NilSize
  1706  			} else {
  1707  				s += z.Columns[za0002].Column.Msgsize()
  1708  			}
  1709  			s += 5 + msgp.Uint64Size
  1710  		}
  1711  	}
  1712  	return
  1713  }
  1714  
  1715  // DecodeMsg implements msgp.Decodable
  1716  func (z *RowChangedEvent) DecodeMsg(dc *msgp.Reader) (err error) {
  1717  	var field []byte
  1718  	_ = field
  1719  	var zb0001 uint32
  1720  	zb0001, err = dc.ReadMapHeader()
  1721  	if err != nil {
  1722  		err = msgp.WrapError(err)
  1723  		return
  1724  	}
  1725  	for zb0001 > 0 {
  1726  		zb0001--
  1727  		field, err = dc.ReadMapKeyPtr()
  1728  		if err != nil {
  1729  			err = msgp.WrapError(err)
  1730  			return
  1731  		}
  1732  		switch msgp.UnsafeString(field) {
  1733  		case "start-ts":
  1734  			z.StartTs, err = dc.ReadUint64()
  1735  			if err != nil {
  1736  				err = msgp.WrapError(err, "StartTs")
  1737  				return
  1738  			}
  1739  		case "commit-ts":
  1740  			z.CommitTs, err = dc.ReadUint64()
  1741  			if err != nil {
  1742  				err = msgp.WrapError(err, "CommitTs")
  1743  				return
  1744  			}
  1745  		case "table":
  1746  			if dc.IsNil() {
  1747  				err = dc.ReadNil()
  1748  				if err != nil {
  1749  					err = msgp.WrapError(err, "Table")
  1750  					return
  1751  				}
  1752  				z.Table = nil
  1753  			} else {
  1754  				if z.Table == nil {
  1755  					z.Table = new(TableName)
  1756  				}
  1757  				err = z.Table.DecodeMsg(dc)
  1758  				if err != nil {
  1759  					err = msgp.WrapError(err, "Table")
  1760  					return
  1761  				}
  1762  			}
  1763  		case "index-columns":
  1764  			var zb0002 uint32
  1765  			zb0002, err = dc.ReadArrayHeader()
  1766  			if err != nil {
  1767  				err = msgp.WrapError(err, "IndexColumns")
  1768  				return
  1769  			}
  1770  			if cap(z.IndexColumns) >= int(zb0002) {
  1771  				z.IndexColumns = (z.IndexColumns)[:zb0002]
  1772  			} else {
  1773  				z.IndexColumns = make([][]int, zb0002)
  1774  			}
  1775  			for za0001 := range z.IndexColumns {
  1776  				var zb0003 uint32
  1777  				zb0003, err = dc.ReadArrayHeader()
  1778  				if err != nil {
  1779  					err = msgp.WrapError(err, "IndexColumns", za0001)
  1780  					return
  1781  				}
  1782  				if cap(z.IndexColumns[za0001]) >= int(zb0003) {
  1783  					z.IndexColumns[za0001] = (z.IndexColumns[za0001])[:zb0003]
  1784  				} else {
  1785  					z.IndexColumns[za0001] = make([]int, zb0003)
  1786  				}
  1787  				for za0002 := range z.IndexColumns[za0001] {
  1788  					z.IndexColumns[za0001][za0002], err = dc.ReadInt()
  1789  					if err != nil {
  1790  						err = msgp.WrapError(err, "IndexColumns", za0001, za0002)
  1791  						return
  1792  					}
  1793  				}
  1794  			}
  1795  		default:
  1796  			err = dc.Skip()
  1797  			if err != nil {
  1798  				err = msgp.WrapError(err)
  1799  				return
  1800  			}
  1801  		}
  1802  	}
  1803  	return
  1804  }
  1805  
  1806  // EncodeMsg implements msgp.Encodable
  1807  func (z *RowChangedEvent) EncodeMsg(en *msgp.Writer) (err error) {
  1808  	// map header, size 4
  1809  	// write "start-ts"
  1810  	err = en.Append(0x84, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
  1811  	if err != nil {
  1812  		return
  1813  	}
  1814  	err = en.WriteUint64(z.StartTs)
  1815  	if err != nil {
  1816  		err = msgp.WrapError(err, "StartTs")
  1817  		return
  1818  	}
  1819  	// write "commit-ts"
  1820  	err = en.Append(0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
  1821  	if err != nil {
  1822  		return
  1823  	}
  1824  	err = en.WriteUint64(z.CommitTs)
  1825  	if err != nil {
  1826  		err = msgp.WrapError(err, "CommitTs")
  1827  		return
  1828  	}
  1829  	// write "table"
  1830  	err = en.Append(0xa5, 0x74, 0x61, 0x62, 0x6c, 0x65)
  1831  	if err != nil {
  1832  		return
  1833  	}
  1834  	if z.Table == nil {
  1835  		err = en.WriteNil()
  1836  		if err != nil {
  1837  			return
  1838  		}
  1839  	} else {
  1840  		err = z.Table.EncodeMsg(en)
  1841  		if err != nil {
  1842  			err = msgp.WrapError(err, "Table")
  1843  			return
  1844  		}
  1845  	}
  1846  	// write "index-columns"
  1847  	err = en.Append(0xad, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1848  	if err != nil {
  1849  		return
  1850  	}
  1851  	err = en.WriteArrayHeader(uint32(len(z.IndexColumns)))
  1852  	if err != nil {
  1853  		err = msgp.WrapError(err, "IndexColumns")
  1854  		return
  1855  	}
  1856  	for za0001 := range z.IndexColumns {
  1857  		err = en.WriteArrayHeader(uint32(len(z.IndexColumns[za0001])))
  1858  		if err != nil {
  1859  			err = msgp.WrapError(err, "IndexColumns", za0001)
  1860  			return
  1861  		}
  1862  		for za0002 := range z.IndexColumns[za0001] {
  1863  			err = en.WriteInt(z.IndexColumns[za0001][za0002])
  1864  			if err != nil {
  1865  				err = msgp.WrapError(err, "IndexColumns", za0001, za0002)
  1866  				return
  1867  			}
  1868  		}
  1869  	}
  1870  	return
  1871  }
  1872  
  1873  // MarshalMsg implements msgp.Marshaler
  1874  func (z *RowChangedEvent) MarshalMsg(b []byte) (o []byte, err error) {
  1875  	o = msgp.Require(b, z.Msgsize())
  1876  	// map header, size 4
  1877  	// string "start-ts"
  1878  	o = append(o, 0x84, 0xa8, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2d, 0x74, 0x73)
  1879  	o = msgp.AppendUint64(o, z.StartTs)
  1880  	// string "commit-ts"
  1881  	o = append(o, 0xa9, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2d, 0x74, 0x73)
  1882  	o = msgp.AppendUint64(o, z.CommitTs)
  1883  	// string "table"
  1884  	o = append(o, 0xa5, 0x74, 0x61, 0x62, 0x6c, 0x65)
  1885  	if z.Table == nil {
  1886  		o = msgp.AppendNil(o)
  1887  	} else {
  1888  		o, err = z.Table.MarshalMsg(o)
  1889  		if err != nil {
  1890  			err = msgp.WrapError(err, "Table")
  1891  			return
  1892  		}
  1893  	}
  1894  	// string "index-columns"
  1895  	o = append(o, 0xad, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73)
  1896  	o = msgp.AppendArrayHeader(o, uint32(len(z.IndexColumns)))
  1897  	for za0001 := range z.IndexColumns {
  1898  		o = msgp.AppendArrayHeader(o, uint32(len(z.IndexColumns[za0001])))
  1899  		for za0002 := range z.IndexColumns[za0001] {
  1900  			o = msgp.AppendInt(o, z.IndexColumns[za0001][za0002])
  1901  		}
  1902  	}
  1903  	return
  1904  }
  1905  
  1906  // UnmarshalMsg implements msgp.Unmarshaler
  1907  func (z *RowChangedEvent) UnmarshalMsg(bts []byte) (o []byte, err error) {
  1908  	var field []byte
  1909  	_ = field
  1910  	var zb0001 uint32
  1911  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  1912  	if err != nil {
  1913  		err = msgp.WrapError(err)
  1914  		return
  1915  	}
  1916  	for zb0001 > 0 {
  1917  		zb0001--
  1918  		field, bts, err = msgp.ReadMapKeyZC(bts)
  1919  		if err != nil {
  1920  			err = msgp.WrapError(err)
  1921  			return
  1922  		}
  1923  		switch msgp.UnsafeString(field) {
  1924  		case "start-ts":
  1925  			z.StartTs, bts, err = msgp.ReadUint64Bytes(bts)
  1926  			if err != nil {
  1927  				err = msgp.WrapError(err, "StartTs")
  1928  				return
  1929  			}
  1930  		case "commit-ts":
  1931  			z.CommitTs, bts, err = msgp.ReadUint64Bytes(bts)
  1932  			if err != nil {
  1933  				err = msgp.WrapError(err, "CommitTs")
  1934  				return
  1935  			}
  1936  		case "table":
  1937  			if msgp.IsNil(bts) {
  1938  				bts, err = msgp.ReadNilBytes(bts)
  1939  				if err != nil {
  1940  					return
  1941  				}
  1942  				z.Table = nil
  1943  			} else {
  1944  				if z.Table == nil {
  1945  					z.Table = new(TableName)
  1946  				}
  1947  				bts, err = z.Table.UnmarshalMsg(bts)
  1948  				if err != nil {
  1949  					err = msgp.WrapError(err, "Table")
  1950  					return
  1951  				}
  1952  			}
  1953  		case "index-columns":
  1954  			var zb0002 uint32
  1955  			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1956  			if err != nil {
  1957  				err = msgp.WrapError(err, "IndexColumns")
  1958  				return
  1959  			}
  1960  			if cap(z.IndexColumns) >= int(zb0002) {
  1961  				z.IndexColumns = (z.IndexColumns)[:zb0002]
  1962  			} else {
  1963  				z.IndexColumns = make([][]int, zb0002)
  1964  			}
  1965  			for za0001 := range z.IndexColumns {
  1966  				var zb0003 uint32
  1967  				zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts)
  1968  				if err != nil {
  1969  					err = msgp.WrapError(err, "IndexColumns", za0001)
  1970  					return
  1971  				}
  1972  				if cap(z.IndexColumns[za0001]) >= int(zb0003) {
  1973  					z.IndexColumns[za0001] = (z.IndexColumns[za0001])[:zb0003]
  1974  				} else {
  1975  					z.IndexColumns[za0001] = make([]int, zb0003)
  1976  				}
  1977  				for za0002 := range z.IndexColumns[za0001] {
  1978  					z.IndexColumns[za0001][za0002], bts, err = msgp.ReadIntBytes(bts)
  1979  					if err != nil {
  1980  						err = msgp.WrapError(err, "IndexColumns", za0001, za0002)
  1981  						return
  1982  					}
  1983  				}
  1984  			}
  1985  		default:
  1986  			bts, err = msgp.Skip(bts)
  1987  			if err != nil {
  1988  				err = msgp.WrapError(err)
  1989  				return
  1990  			}
  1991  		}
  1992  	}
  1993  	o = bts
  1994  	return
  1995  }
  1996  
  1997  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  1998  func (z *RowChangedEvent) Msgsize() (s int) {
  1999  	s = 1 + 9 + msgp.Uint64Size + 10 + msgp.Uint64Size + 6
  2000  	if z.Table == nil {
  2001  		s += msgp.NilSize
  2002  	} else {
  2003  		s += z.Table.Msgsize()
  2004  	}
  2005  	s += 14 + msgp.ArrayHeaderSize
  2006  	for za0001 := range z.IndexColumns {
  2007  		s += msgp.ArrayHeaderSize + (len(z.IndexColumns[za0001]) * (msgp.IntSize))
  2008  	}
  2009  	return
  2010  }
  2011  
  2012  // DecodeMsg implements msgp.Decodable
  2013  func (z *TableName) DecodeMsg(dc *msgp.Reader) (err error) {
  2014  	var field []byte
  2015  	_ = field
  2016  	var zb0001 uint32
  2017  	zb0001, err = dc.ReadMapHeader()
  2018  	if err != nil {
  2019  		err = msgp.WrapError(err)
  2020  		return
  2021  	}
  2022  	for zb0001 > 0 {
  2023  		zb0001--
  2024  		field, err = dc.ReadMapKeyPtr()
  2025  		if err != nil {
  2026  			err = msgp.WrapError(err)
  2027  			return
  2028  		}
  2029  		switch msgp.UnsafeString(field) {
  2030  		case "db-name":
  2031  			z.Schema, err = dc.ReadString()
  2032  			if err != nil {
  2033  				err = msgp.WrapError(err, "Schema")
  2034  				return
  2035  			}
  2036  		case "tbl-name":
  2037  			z.Table, err = dc.ReadString()
  2038  			if err != nil {
  2039  				err = msgp.WrapError(err, "Table")
  2040  				return
  2041  			}
  2042  		case "tbl-id":
  2043  			z.TableID, err = dc.ReadInt64()
  2044  			if err != nil {
  2045  				err = msgp.WrapError(err, "TableID")
  2046  				return
  2047  			}
  2048  		case "is-partition":
  2049  			z.IsPartition, err = dc.ReadBool()
  2050  			if err != nil {
  2051  				err = msgp.WrapError(err, "IsPartition")
  2052  				return
  2053  			}
  2054  		default:
  2055  			err = dc.Skip()
  2056  			if err != nil {
  2057  				err = msgp.WrapError(err)
  2058  				return
  2059  			}
  2060  		}
  2061  	}
  2062  	return
  2063  }
  2064  
  2065  // EncodeMsg implements msgp.Encodable
  2066  func (z *TableName) EncodeMsg(en *msgp.Writer) (err error) {
  2067  	// map header, size 4
  2068  	// write "db-name"
  2069  	err = en.Append(0x84, 0xa7, 0x64, 0x62, 0x2d, 0x6e, 0x61, 0x6d, 0x65)
  2070  	if err != nil {
  2071  		return
  2072  	}
  2073  	err = en.WriteString(z.Schema)
  2074  	if err != nil {
  2075  		err = msgp.WrapError(err, "Schema")
  2076  		return
  2077  	}
  2078  	// write "tbl-name"
  2079  	err = en.Append(0xa8, 0x74, 0x62, 0x6c, 0x2d, 0x6e, 0x61, 0x6d, 0x65)
  2080  	if err != nil {
  2081  		return
  2082  	}
  2083  	err = en.WriteString(z.Table)
  2084  	if err != nil {
  2085  		err = msgp.WrapError(err, "Table")
  2086  		return
  2087  	}
  2088  	// write "tbl-id"
  2089  	err = en.Append(0xa6, 0x74, 0x62, 0x6c, 0x2d, 0x69, 0x64)
  2090  	if err != nil {
  2091  		return
  2092  	}
  2093  	err = en.WriteInt64(z.TableID)
  2094  	if err != nil {
  2095  		err = msgp.WrapError(err, "TableID")
  2096  		return
  2097  	}
  2098  	// write "is-partition"
  2099  	err = en.Append(0xac, 0x69, 0x73, 0x2d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e)
  2100  	if err != nil {
  2101  		return
  2102  	}
  2103  	err = en.WriteBool(z.IsPartition)
  2104  	if err != nil {
  2105  		err = msgp.WrapError(err, "IsPartition")
  2106  		return
  2107  	}
  2108  	return
  2109  }
  2110  
  2111  // MarshalMsg implements msgp.Marshaler
  2112  func (z *TableName) MarshalMsg(b []byte) (o []byte, err error) {
  2113  	o = msgp.Require(b, z.Msgsize())
  2114  	// map header, size 4
  2115  	// string "db-name"
  2116  	o = append(o, 0x84, 0xa7, 0x64, 0x62, 0x2d, 0x6e, 0x61, 0x6d, 0x65)
  2117  	o = msgp.AppendString(o, z.Schema)
  2118  	// string "tbl-name"
  2119  	o = append(o, 0xa8, 0x74, 0x62, 0x6c, 0x2d, 0x6e, 0x61, 0x6d, 0x65)
  2120  	o = msgp.AppendString(o, z.Table)
  2121  	// string "tbl-id"
  2122  	o = append(o, 0xa6, 0x74, 0x62, 0x6c, 0x2d, 0x69, 0x64)
  2123  	o = msgp.AppendInt64(o, z.TableID)
  2124  	// string "is-partition"
  2125  	o = append(o, 0xac, 0x69, 0x73, 0x2d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e)
  2126  	o = msgp.AppendBool(o, z.IsPartition)
  2127  	return
  2128  }
  2129  
  2130  // UnmarshalMsg implements msgp.Unmarshaler
  2131  func (z *TableName) UnmarshalMsg(bts []byte) (o []byte, err error) {
  2132  	var field []byte
  2133  	_ = field
  2134  	var zb0001 uint32
  2135  	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  2136  	if err != nil {
  2137  		err = msgp.WrapError(err)
  2138  		return
  2139  	}
  2140  	for zb0001 > 0 {
  2141  		zb0001--
  2142  		field, bts, err = msgp.ReadMapKeyZC(bts)
  2143  		if err != nil {
  2144  			err = msgp.WrapError(err)
  2145  			return
  2146  		}
  2147  		switch msgp.UnsafeString(field) {
  2148  		case "db-name":
  2149  			z.Schema, bts, err = msgp.ReadStringBytes(bts)
  2150  			if err != nil {
  2151  				err = msgp.WrapError(err, "Schema")
  2152  				return
  2153  			}
  2154  		case "tbl-name":
  2155  			z.Table, bts, err = msgp.ReadStringBytes(bts)
  2156  			if err != nil {
  2157  				err = msgp.WrapError(err, "Table")
  2158  				return
  2159  			}
  2160  		case "tbl-id":
  2161  			z.TableID, bts, err = msgp.ReadInt64Bytes(bts)
  2162  			if err != nil {
  2163  				err = msgp.WrapError(err, "TableID")
  2164  				return
  2165  			}
  2166  		case "is-partition":
  2167  			z.IsPartition, bts, err = msgp.ReadBoolBytes(bts)
  2168  			if err != nil {
  2169  				err = msgp.WrapError(err, "IsPartition")
  2170  				return
  2171  			}
  2172  		default:
  2173  			bts, err = msgp.Skip(bts)
  2174  			if err != nil {
  2175  				err = msgp.WrapError(err)
  2176  				return
  2177  			}
  2178  		}
  2179  	}
  2180  	o = bts
  2181  	return
  2182  }
  2183  
  2184  // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  2185  func (z *TableName) Msgsize() (s int) {
  2186  	s = 1 + 8 + msgp.StringPrefixSize + len(z.Schema) + 9 + msgp.StringPrefixSize + len(z.Table) + 7 + msgp.Int64Size + 13 + msgp.BoolSize
  2187  	return
  2188  }