T_Iota_Lib_CSharp_Api_Utils_Converter - iotaledger-archive/iota.lib.csharp GitHub Wiki
This class provides a set of utility methods to are used to convert between different formats
System.Object
Iota.Lib.CSharp.Api.Utils.Converter
Namespace: Iota.Lib.CSharp.Api.Utils
Assembly: IotaApi (in IotaApi.dll) Version: 0.9.0.24212 (1.0.0.0)
C#
public class ConverterThe Converter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() |
Converter | Initializes a new instance of the Converter class |
| Name | Description | |
|---|---|---|
![]()
|
CopyTrits(String, Int32[]) | Copies the trits from the input string into the destination array |
![]()
|
CopyTrits(Int64, Int32[], Int32, Int32) | Copies the trits in long representation into the destination array |
![]()
|
GetTrits | Gets the trits from the specified bytes and stores it into the provided trits array |
![]()
|
Increment | Increments the specified trits. |
![]()
|
ToBytes(Int32[]) | Converts the specified trits to trytes |
![]()
|
ToBytes(Int32[], Int32, Int32) | Converts the specified trits array to bytes |
![]()
|
ToLongValue | Converts the specified trits to its corresponding integer value |
![]()
|
ToTrits(String) | Converts the specified trinary encoded trytes string to trits |
![]()
|
ToTrits(String, Int32) | Converts the specified trinary encoded string into a trits array of the specified length. If the trytes string results in a shorter then specified trits array, then the remainder is padded we zeroes |
![]()
|
ToTritsString | Converts the specified trinary encoded string into trits |
![]()
|
ToTrytes(Int32[]) | Converts the trits array to a trytes string |
![]()
|
ToTrytes(Int32[], Int32, Int32) | Converts the trits array to a trytes string |
![]()
|
ToTryteValue | Converts the specified trits array to trytes in integer representation |
![]()
|
ToValue | Converts the specified trits to its corresponding integer value |
| Name | Description | |
|---|---|---|
![]()
|
MaxTritValue | The maximum trit value |
![]()
|
MinTritValue | The minimum trit value |
![]()
|
NumberOfTritsInAByte | The number of trits in a byte |
![]()
|
NumberOfTritsInATryte | The number of trits in a tryte |
![]()
|
Radix | The radix |

