code: func (ran *Range) Encode(sc *stmtctx.StatementContext, lowBuffer, highBuffer []byte) ([]byte, []byte, error) {
  	var err error
  	lowBuffer, err = codec.EncodeKey(sc, lowBuffer[:0], ran.LowVal...)
  	if err != nil {
  		return nil, nil, err
  	}
  	if ran.LowExclude {
  		lowBuffer = kv.Key(lowBuffer).PrefixNext()
  	}
  	highBuffer, err = codec.EncodeKey(sc, highBuffer[:0], ran.HighVal...)
  	if err != nil {
  		return nil, nil, err
  	}
  	if !ran.HighExclude {
  		highBuffer = kv.Key(highBuffer).PrefixNext()
  	}
  	return lowBuffer, highBuffer, nil
  }
docs: // Encode encodes the range to its encoded value.