Exemplo n.º 1
0
            internal static ByteBuffer GetData(ByteBuffer bytes, string key) // ICU4N specific - changed key from ICharSequence to string
            {
                int index = BinarySearch(bytes, key);

                if (index >= 0)
                {
                    ByteBuffer data = bytes.Duplicate();
                    data.Position = GetDataOffset(bytes, index);
                    data.Limit    = GetDataOffset(bytes, index + 1);
                    return(ICUBinary.SliceWithOrder(data));
                }
                else
                {
                    return(null);
                }
            }