0

The following implementation are done in C#, and I am trying to convert into the Swift.

However, I am wondering how to use BigInteger in Swift, I have not seen this data type before. I really appreciate if anyone shares any idea to create something similar in Swift.

custom.test_u128(BigInteger.One);
CollectionAssert.AreEqual(custom.get_bytes(), new byte[] { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });

protected readonly MemoryStream buffer;
public byte[] get_bytes() => buffer.ToArray();
President James K. Polk
  • 38,341
  • 16
  • 90
  • 119

0 Answers0