public static ulong NextULong(this IBufferedArray buffer, IByteConverter converter)
    {
        SharedContracts(buffer, converter);

        buffer.BufferNextExceptionChecking(ByteLength.ULong);
        return(converter.ToULong(buffer.Buffer, 0));
    }
    public static bool TryNextULong(this IBufferedArray buffer, IByteConverter converter, out ulong value)
    {
        SharedContracts(buffer, converter);

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

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