protected internal virtual string EncodeCollationKey(sbyte[] keyBits)
{
// Ensure that the backing char[] array is large enough to hold the encoded
// Binary String
int encodedLength = IndexableBinaryStringTools.GetEncodedLength(keyBits, 0, keyBits.Length);
char[] encodedBegArray = new char[encodedLength];
IndexableBinaryStringTools.Encode(keyBits, 0, keyBits.Length, encodedBegArray, 0, encodedLength);
return new string(encodedBegArray);
}