示例#1
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern unsafe ReturnCode terab_utxo_set_coins(
     SafeConnectionHandle connection,
     BlockHandle context,
     int coinLength,
     Coin *coins,
     int storageLength,
     byte *storage
     );
示例#2
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_utxo_get_blockinfo(
     SafeConnectionHandle connection,
     BlockHandle handle,
     ref BlockInfo info);
示例#3
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_utxo_get_uncommitted_block(
     SafeConnectionHandle connection,
     ref UncommittedBlockId blockUcid,
     out BlockHandle handle);
示例#4
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_utxo_commit_block(
     SafeConnectionHandle connection,
     BlockHandle handle,
     ref CommittedBlockId blockId);
示例#5
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_utxo_open_block(
     SafeConnectionHandle connection,
     ref CommittedBlockId parentId,
     out BlockHandle handle,
     ref UncommittedBlockId ucid);
示例#6
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_disconnect(SafeConnectionHandle connectionHandle,
                                                    [MarshalAs(UnmanagedType.LPStr)] string reason);
示例#7
0
文件: PInvokes.cs 项目: swdee/Terab
 internal static extern ReturnCode terab_connect([MarshalAs(UnmanagedType.LPStr)] string cnxString,
                                                 out SafeConnectionHandle connectionHandle);