public Slice EncodeKey(T key)
 {
     return(m_codec.EncodeOrdered(key));
 }
 public void WriteKeyTo(ref SliceWriter writer, T key)
 {
     //TODO: PERF: optimize this!
     writer.WriteBytes(m_codec.EncodeOrdered(key));
 }