Skip to content

Commit

Permalink
[swig][test] refs #8 Added typemap GoUint32 Tests run: 85, Errors: 0,…
Browse files Browse the repository at this point in the history
… Failures: 0, Inconclusive: 0, Time: 17,4740162 seconds

  Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
  • Loading branch information
Maykel Arias Torres committed Nov 10, 2018
1 parent ac5f7b3 commit b46b73d
Show file tree
Hide file tree
Showing 7 changed files with 316 additions and 83 deletions.
71 changes: 56 additions & 15 deletions LibskycoinNet/skycoin/skycoin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,31 @@ public static int intp_value(SWIGTYPE_p_int obj) {
return ret;
}

public static SWIGTYPE_p_unsigned_int new_GoUint32Ptr() {
global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint32Ptr();
SWIGTYPE_p_unsigned_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}

public static SWIGTYPE_p_unsigned_int copy_GoUint32Ptr(uint value) {
global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint32Ptr(value);
SWIGTYPE_p_unsigned_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false);
return ret;
}

public static void delete_GoUint32Ptr(SWIGTYPE_p_unsigned_int obj) {
skycoinPINVOKE.delete_GoUint32Ptr(SWIGTYPE_p_unsigned_int.getCPtr(obj));
}

public static void GoUint32Ptr_assign(SWIGTYPE_p_unsigned_int obj, uint value) {
skycoinPINVOKE.GoUint32Ptr_assign(SWIGTYPE_p_unsigned_int.getCPtr(obj), value);
}

public static uint GoUint32Ptr_value(SWIGTYPE_p_unsigned_int obj) {
uint ret = skycoinPINVOKE.GoUint32Ptr_value(SWIGTYPE_p_unsigned_int.getCPtr(obj));
return ret;
}

public static coin__Transaction new_coin__Transactionp() {
global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__Transactionp();
coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false);
Expand Down Expand Up @@ -1241,8 +1266,8 @@ public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S
}
}

public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) {
uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1));
public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_int p1) {
uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1));
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down Expand Up @@ -1304,8 +1329,8 @@ public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, ciph
}
}

public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) {
uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1));
public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_unsigned_int p1) {
uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1));
return ret;
}

Expand Down Expand Up @@ -2181,6 +2206,18 @@ public static uint SKY_iputil_SplitAddr(string p0, _GoString_ p1, SWIGTYPE_p_uns
}
}

public static void SKY_params_GetDistributionAddresses(GoSlice p0) {
skycoinPINVOKE.SKY_params_GetDistributionAddresses(GoSlice.getCPtr (p0));
}

public static void SKY_params_GetUnlockedDistributionAddresses(GoSlice p0) {
skycoinPINVOKE.SKY_params_GetUnlockedDistributionAddresses(GoSlice.getCPtr (p0));
}

public static void SKY_params_GetLockedDistributionAddresses(GoSlice p0) {
skycoinPINVOKE.SKY_params_GetLockedDistributionAddresses(GoSlice.getCPtr (p0));
}

public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) {
var tmpp0 = p0;
{
Expand Down Expand Up @@ -3139,23 +3176,23 @@ public static uint SKY_certutil_NewTLSCertPair(string p0, string p1, GoSlice p2,
}
}

public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, ulong p2) {
public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, uint p2) {
uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, p2);
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1, ulong p2) {
public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1, uint p2) {
uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2);
return ret;
}

public static uint SKY_fee_RequiredFee(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) {
public static uint SKY_fee_RequiredFee(ulong p0, uint p1, SWIGTYPE_p_unsigned_long_long p2) {
uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2));
return ret;
}

public static uint SKY_fee_RemainingHours(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) {
public static uint SKY_fee_RemainingHours(ulong p0, uint p1, SWIGTYPE_p_unsigned_long_long p2) {
uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2));
return ret;
}
Expand Down Expand Up @@ -3635,8 +3672,8 @@ public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handl
return ret;
}

public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) {
uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1));
public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1) {
uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1));
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand All @@ -3650,10 +3687,10 @@ public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0,
}
}

public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) {
public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1, cipher_SecKey p2) {
var tmpp2 = cipher_SecKey.getCPtr (p2);
{
uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2);
uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1), tmpp2);
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down Expand Up @@ -3748,13 +3785,13 @@ public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle
return ret;
}

public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) {
uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1));
public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_unsigned_int p1) {
uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1));
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) {
public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, uint p1, SWIGTYPE_p_Transactions__Handle p2) {
uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2));
if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve();
return ret;
Expand Down Expand Up @@ -3821,6 +3858,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1,
public static readonly int SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL();
public static readonly int SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR();
public static readonly int SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET();
public static readonly int SKY_PKG_PARAMS = skycoinPINVOKE.get_SKY_PKG_PARAMS();
public static readonly int SKY_PKG_LIBCGO = skycoinPINVOKE.get_SKY_PKG_LIBCGO();
public static readonly int SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength();
public static readonly int SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum();
Expand Down Expand Up @@ -3887,6 +3925,8 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1,
public static readonly int SKY_ErrUint32AddOverflow = skycoinPINVOKE.get_SKY_ErrUint32AddOverflow();
public static readonly int SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.get_SKY_ErrUint64OverflowsInt64();
public static readonly int SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.get_SKY_ErrInt64UnderflowsUint64();
public static readonly int SKY_ErrIntUnderflowsUint32 = skycoinPINVOKE.get_SKY_ErrIntUnderflowsUint32();
public static readonly int SKY_ErrIntOverflowsUint32 = skycoinPINVOKE.get_SKY_ErrIntOverflowsUint32();
public static readonly int SKY_ErrPeerlistFull = skycoinPINVOKE.get_SKY_ErrPeerlistFull();
public static readonly int SKY_ErrInvalidAddress = skycoinPINVOKE.get_SKY_ErrInvalidAddress();
public static readonly int SKY_ErrNoLocalhost = skycoinPINVOKE.get_SKY_ErrNoLocalhost();
Expand Down Expand Up @@ -3977,6 +4017,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1,
public static readonly int SKY_ErrVerifySignatureInvalidInputsNils = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidInputsNils();
public static readonly int SKY_ErrVerifySignatureInvalidSigLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidSigLength();
public static readonly int SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength();
public static readonly int SKY_ErrInvalidDecimals = skycoinPINVOKE.get_SKY_ErrInvalidDecimals();
}

}
46 changes: 41 additions & 5 deletions LibskycoinNet/skycoin/skycoinPINVOKE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,21 @@ static skycoinPINVOKE() {
[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")]
public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint32Ptr")]
public static extern global::System.IntPtr new_GoUint32Ptr();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint32Ptr")]
public static extern global::System.IntPtr copy_GoUint32Ptr(uint jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint32Ptr")]
public static extern void delete_GoUint32Ptr(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint32Ptr_assign")]
public static extern void GoUint32Ptr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint32Ptr_value")]
public static extern uint GoUint32Ptr_value(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transactionp")]
public static extern global::System.IntPtr new_coin__Transactionp();

Expand Down Expand Up @@ -1658,6 +1673,15 @@ static skycoinPINVOKE() {
[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")]
public static extern uint SKY_iputil_SplitAddr(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetDistributionAddresses")]
public static extern void SKY_params_GetDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetUnlockedDistributionAddresses")]
public static extern void SKY_params_GetUnlockedDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetLockedDistributionAddresses")]
public static extern void SKY_params_GetLockedDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")]
public static extern uint SKY_cli_GenerateAddressesInFile(string jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);

Expand Down Expand Up @@ -2067,16 +2091,16 @@ static skycoinPINVOKE() {
public static extern uint SKY_certutil_NewTLSCertPair(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")]
public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3);
public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, uint jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")]
public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2, ulong jarg3);
public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2, uint jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")]
public static extern uint SKY_fee_RequiredFee(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
public static extern uint SKY_fee_RequiredFee(ulong jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")]
public static extern uint SKY_fee_RemainingHours(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
public static extern uint SKY_fee_RemainingHours(ulong jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1")]
public static extern uint SKY_fee_TransactionFee__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);
Expand Down Expand Up @@ -2325,7 +2349,7 @@ static skycoinPINVOKE() {
public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")]
public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")]
public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
Expand Down Expand Up @@ -2993,6 +3017,9 @@ static skycoinPINVOKE() {
[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")]
public static extern int get_SKY_PKG_WALLET();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_PARAMS")]
public static extern int get_SKY_PKG_PARAMS();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_LIBCGO")]
public static extern int get_SKY_PKG_LIBCGO();

Expand Down Expand Up @@ -3191,6 +3218,12 @@ static skycoinPINVOKE() {
[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64")]
public static extern int get_SKY_ErrInt64UnderflowsUint64();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIntUnderflowsUint32")]
public static extern int get_SKY_ErrIntUnderflowsUint32();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIntOverflowsUint32")]
public static extern int get_SKY_ErrIntOverflowsUint32();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPeerlistFull")]
public static extern int get_SKY_ErrPeerlistFull();

Expand Down Expand Up @@ -3460,6 +3493,9 @@ static skycoinPINVOKE() {

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")]
public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength();

[global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDecimals")]
public static extern int get_SKY_ErrInvalidDecimals();
}

}
Loading

0 comments on commit b46b73d

Please sign in to comment.