The BigInteger class has a method that returns a byte array. Is that indicative of the fact that the class uses a byte array internally as well to store numbers?
This is important to know in order to pick the right data types to manipulate binary data. If the class were, for example, to use an Int64 array, then a similar array would be more efficient to manipulate raw data by any calling functions.
As an example, I am calling the ToByteArray method to traverse bytes looking for specific binary patterns.
According to the reference source it appears that it stores it’s information as a
uint[]for the data and a int for the sign.Here is the code it executes to perform
ToByteArray()