/// <summary> /// Returns a byte encoding of the <see cref="BigNumber" /> in little endian encoding. /// /// Optionally adds padding with zeros at then end of the byte encoding, /// the length of which is specified by the <paramref name="backPadding"/> parameter. /// </summary> /// <param name="backPadding">How many bytes of zero to add at the end of the byte encoding.</param> /// <returns>Byte buffer containing the byte encoding of the number.</returns> public byte[] ToBytes(uint backPadding = 0) { byte[] buffer = new byte[Length.InBytes + backPadding]; BigNumberHandle.ToBytes(Handle, buffer); return(buffer); }