Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

T_Iota_Lib_CSharp_Api_Utils_Converter

saniro edited this page Feb 16, 2017 · 1 revision

Converter Class

This class provides a set of utility methods to are used to convert between different formats

Inheritance Hierarchy

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)

Syntax

C#

public class Converter

The Converter type exposes the following members.

Constructors

 

Name Description
Public method Converter Initializes a new instance of the Converter class
  Back to Top

Methods

 

Name Description
Public methodStatic member CopyTrits(String, Int32[]) Copies the trits from the input string into the destination array
Public methodStatic member CopyTrits(Int64, Int32[], Int32, Int32) Copies the trits in long representation into the destination array
Public methodStatic member GetTrits Gets the trits from the specified bytes and stores it into the provided trits array
Public methodStatic member Increment Increments the specified trits.
Public methodStatic member ToBytes(Int32[]) Converts the specified trits to trytes
Public methodStatic member ToBytes(Int32[], Int32, Int32) Converts the specified trits array to bytes
Public methodStatic member ToLongValue Converts the specified trits to its corresponding integer value
Public methodStatic member ToTrits(String) Converts the specified trinary encoded trytes string to trits
Public methodStatic member 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
Public methodStatic member ToTritsString Converts the specified trinary encoded string into trits
Public methodStatic member ToTrytes(Int32[]) Converts the trits array to a trytes string
Public methodStatic member ToTrytes(Int32[], Int32, Int32) Converts the trits array to a trytes string
Public methodStatic member ToTryteValue Converts the specified trits array to trytes in integer representation
Public methodStatic member ToValue Converts the specified trits to its corresponding integer value
  Back to Top

Fields

 

Name Description
Public fieldStatic member MaxTritValue The maximum trit value
Public fieldStatic member MinTritValue The minimum trit value
Public fieldStatic member NumberOfTritsInAByte The number of trits in a byte
Public fieldStatic member NumberOfTritsInATryte The number of trits in a tryte
Public fieldStatic member Radix The radix
  Back to Top

See Also

Reference

Iota.Lib.CSharp.Api.Utils Namespace

Clone this wiki locally