// UnmarshalBinary implements encoding.BinaryUnmarshaler interface.
UnmarshalBinary implements encoding.BinaryUnmarshaler interface.
// UnmarshalBinary implements encoding . BinaryUnmarshaler interface .
func (l *mvccLock) UnmarshalBinary(data []byte) error {
	var mh marshalHelper
	buf := bytes.NewBuffer(data)
	mh.ReadNumber(buf, &l.startTS)
	mh.ReadSlice(buf, &l.primary)
	mh.ReadSlice(buf, &l.value)
	mh.ReadNumber(buf, &l.op)
	mh.ReadNumber(buf, &l.ttl)
	mh.ReadNumber(buf, &l.forUpdateTS)
	mh.ReadNumber(buf, &l.txnSize)
	mh.ReadNumber(buf, &l.minCommitTS)
	return errors.Trace(mh.err)
}
func ( l * mvccLock ) UnmarshalBinary ( data [ ] byte ) error { var mh marshalHelper buf := bytes . NewBuffer ( data ) mh . ReadNumber ( buf , & l . startTS ) mh . ReadSlice ( buf , & l . primary ) mh . ReadSlice ( buf , & l . value ) mh . ReadNumber ( buf , & l . op ) mh . ReadNumber ( buf , & l . ttl ) mh . ReadNumber ( buf , & l . forUpdateTS ) mh . ReadNumber ( buf , & l . txnSize ) mh . ReadNumber ( buf , & l . minCommitTS ) return errors . Trace ( mh . err ) }
UnmarshalBinary implements encoding.BinaryUnmarshaler interface.
UnmarshalBinary implements encoding . BinaryUnmarshaler interface .