public static char NextChar(this IBufferedArray buffer, IByteConverter converter)
    {
        SharedContracts(buffer, converter);

        buffer.BufferNextExceptionChecking(ByteLength.Char);
        return(converter.ToChar(buffer.Buffer, 0));
    }
    public static bool TryNextChar(this IBufferedArray buffer, IByteConverter converter, out char value)
    {
        SharedContracts(buffer, converter);

        if (buffer.TryBufferNext(ByteLength.Char))
        {
            value = converter.ToChar(buffer.Buffer, 0);
            return(true);
        }
        else
        {
            value = default(char);
            return(false);
        }
    }
    public static char ToChar(this IByteConverter converter, byte[] buffer, int index)
    {
        Contracts.Requires.That(converter != null);

        return(converter.ToChar(buffer, ref index));
    }