// MarshalBinary implements encoding.BinaryMarshaler interface.
MarshalBinary implements encoding.BinaryMarshaler interface.
// MarshalBinary implements encoding . BinaryMarshaler interface .
func (l *mvccLock) MarshalBinary() ([]byte, error) {
	var (
		mh  marshalHelper
		buf bytes.Buffer
	)
	mh.WriteNumber(&buf, l.startTS)
	mh.WriteSlice(&buf, l.primary)
	mh.WriteSlice(&buf, l.value)
	mh.WriteNumber(&buf, l.op)
	mh.WriteNumber(&buf, l.ttl)
	mh.WriteNumber(&buf, l.forUpdateTS)
	mh.WriteNumber(&buf, l.txnSize)
	mh.WriteNumber(&buf, l.minCommitTS)
	return buf.Bytes(), errors.Trace(mh.err)
}
func ( l * mvccLock ) MarshalBinary ( ) ( [ ] byte , error ) { var ( mh marshalHelper buf bytes . Buffer ) mh . WriteNumber ( & buf , l . startTS ) mh . WriteSlice ( & buf , l . primary ) mh . WriteSlice ( & buf , l . value ) mh . WriteNumber ( & buf , l . op ) mh . WriteNumber ( & buf , l . ttl ) mh . WriteNumber ( & buf , l . forUpdateTS ) mh . WriteNumber ( & buf , l . txnSize ) mh . WriteNumber ( & buf , l . minCommitTS ) return buf . Bytes ( ) , errors . Trace ( mh . err ) }
MarshalBinary implements encoding.BinaryMarshaler interface.
MarshalBinary implements encoding . BinaryMarshaler interface .