Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BigInteger Span-based APIs #22836

Closed
3 tasks done
stephentoub opened this issue Jul 18, 2017 · 2 comments
Closed
3 tasks done

Add BigInteger Span-based APIs #22836

stephentoub opened this issue Jul 18, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@stephentoub
Copy link
Member

Separated out of https://github.com/dotnet/corefx/issues/21281 for tracking purposes.

  • Implement in System.Runtime.Numerics
  • Expose from System.Runtime.Numerics ref
  • Test in System.Runtime.Numerics.Tests
namespace System.Numerics
{
    public struct BigInteger
    {
        public BigInteger(ReadOnlySpan<byte> value);

        public int GetByteCount();
        public bool TryWriteBytes(Span<byte> destination, out int bytesWritten);

        public static BigInteger Parse(ReadOnlySpan<char> value, NumberStyles style = NumberStyles.Integer, IFormatProvider provider = null);
        public static bool TryParse(ReadOnlySpan<char> value, out BigInteger result, NumberStyles style = NumberStyles.Integer, IFormatProvider provider = null);

        public static bool TryFormat(Span<char> destination, out int charsWritten, string format = null, IFormatProvider provider = null);}
}
@bazzilic
Copy link

When do you think this will reach the big .NET Framework?

@jnm2
Copy link
Contributor

jnm2 commented May 28, 2018

The question on everyone's minds... (at least until .NET Core 3 comes out!)

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants