Convert
Overview
Converter class to convert 1 type to another
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
Class Methods
Base32StringToByteArray .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- S:
Base64StringToByteArray
Convert a base 64 string to it's byte array equivalent.
Parameters:
- S:
HexStringToByteArray
Convert a hexadecimal string to it's byte array equivalent.
Parameters:
- aData:
HexStringToUInt32
Convert a hexadecimal string to an uint32.
Parameters:
- aValue:
HexStringToUInt64
Convert a hexadecimal string to an uint64.
Parameters:
- aValue:
initialize ToffeeV2
static func initialize()
initialize initialize() Toffee
static func initialize(initialize )
Parameters:
- :
MemorySizeToString .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- aSize:
MillisecondsToTimeString
Parameters:
- aMS:
Parameters:
- aData:
Parameters:
- aData:
- aOffset:
- aCount:
ToBase32String (array of Byte): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- S:
ToBase32String (array of Byte, Int32, Int32): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- S:
- aStartIndex:
- aLength:
Parameters:
- S:
Convert a byte array to a base64 string.
Parameters:
- S:
- aStartIndex:
- aLength:
ToBinaryString
Convert a number to a binary number string, (1/0's ) of at least aWidth width.
Parameters:
- aValue:
- aWidth:
Convert a double to a boolean.
Parameters:
- aValue:
Convert an int32 to a boolean.
Parameters:
- aValue:
Convert an int64 to a boolean.
Parameters:
- aValue:
Convert a string to a boolean.
Parameters:
- aValue:
Convert a byte to a boolean.
Parameters:
- aValue:
Convert a boolean to a byte.
Parameters:
- aValue:
Convert a char to a byte.
Parameters:
- aValue:
Convert a double to a byte.
Parameters:
- aValue:
Convert an int32 to a byte.
Parameters:
- aValue:
Convert an int64 to a byte.
Parameters:
- aValue:
Convert a string to a byte.
Parameters:
- aValue:
Convert a boolean to a char.
Parameters:
- aValue:
Convert an int32 to a char.
Parameters:
- aValue:
Convert an int64 to a char.
Parameters:
- aValue:
Convert a string to a char.
Parameters:
- aValue:
Convert a byte to a char.
Parameters:
- aValue:
Convert a boolean to a double.
Parameters:
- aValue:
Convert an int32 to a double.
Parameters:
- aValue:
Convert an int64 to a double.
Parameters:
- aValue:
Convert a string to a double, given a locale.
Parameters:
- aValue:
- aLocale:
Convert a byte to a double.
Parameters:
- aValue:
ToDoubleInvariant
Convert an string to a double, in the invariant culture.
Parameters:
- aValue:
class method ToHexString(aData: array of Byte; aCount: Int32; aSpacer: String; aBytesPerLine: Int32): not nullable String
Parameters:
- aData:
- aCount:
- aSpacer:
- aBytesPerLine:
class method ToHexString(aData: array of Byte; aOffset: Int32; aCount: Int32; aSpacer: String; aBytesPerLine: Int32): not nullable String
static String! ToHexString(Byte[] aData, Int32 aOffset, Int32 aCount, String aSpacer, Int32 aBytesPerLine)
static func ToHexString(_ aData: Byte..., _ aOffset: Int32, _ aCount: Int32, _ aSpacer: String, _ aBytesPerLine: Int32) -> String
Parameters:
- aData:
- aOffset:
- aCount:
- aSpacer:
- aBytesPerLine:
Parameters:
- aData:
- aSpacer:
- aBytesPerLine:
ToHexString (ImmutableBinary, String, Int32): not nullable String
class method ToHexString(aData: ImmutableBinary; aSpacer: String; aBytesPerLine: Int32): not nullable String
static String! ToHexString(ImmutableBinary aData, String aSpacer, Int32 aBytesPerLine)
static func ToHexString(_ aData: ImmutableBinary, _ aSpacer: String, _ aBytesPerLine: Int32) -> String
static String ToHexString(ImmutableBinary aData, String aSpacer, Integer aBytesPerLine)
Shared Function ToHexString(aData As ImmutableBinary, aSpacer As String, aBytesPerLine As Int32) As String
Parameters:
- aData:
- aSpacer:
- aBytesPerLine:
Convert an uint64 to a hex string.
Parameters:
- aValue:
- aWidth:
Convert a boolean to an integer.
Parameters:
- aValue:
Convert a char to an integer.
Parameters:
- aValue:
Convert a double to an integer.
Parameters:
- aValue:
Convert an int64 to an integer.
Parameters:
- aValue:
Convert a string to an integer.
Parameters:
- aValue:
Convert a byte to an integer.
Parameters:
- aValue:
Convert a boolean to an integer.
Parameters:
- aValue:
Convert a char to an integer.
Parameters:
- aValue:
Convert a double to an integer.
Parameters:
- aValue:
Convert a int32 to an integer.
Parameters:
- aValue:
Convert a string to an integer.
Parameters:
- aValue:
Convert a byte to an integer.
Parameters:
- aValue:
ToOctalString
Convert an integer to it's octal equivalent as string.
Parameters:
- aValue:
- aWidth:
Convert a boolean to string.
Parameters:
- aValue:
Convert a char to string.
Parameters:
- aValue:
class method ToString(aValue: Double; aDigitsAfterDecimalPoint: Int32; aMinWidth: Int32; aLocale: Locale): not nullable String
static String! ToString(Double aValue, Int32 aDigitsAfterDecimalPoint, Int32 aMinWidth, Locale aLocale)
static func ToString(_ aValue: Double, _ aDigitsAfterDecimalPoint: Int32, _ aMinWidth: Int32, _ aLocale: Locale) -> String
Parameters:
- aValue:
- aDigitsAfterDecimalPoint:
- aMinWidth:
- aLocale:
Convert an int32 to string.
Parameters:
- aValue:
- aBase:
Convert an int64 to string.
Parameters:
- aValue:
- aBase:
Convert an object to string.
Parameters:
- aValue:
ToString (UInt64, Int32): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Convert an uint64 to string.
Parameters:
- aValue:
- aBase:
Convert a byte to string.
Parameters:
- aValue:
- aBase:
ToStringInvariant
class method ToStringInvariant(aValue: Double; aDigitsAfterDecimalPoint: Int32; aMinWidth: Int32): not nullable String
Parameters:
- aValue:
- aDigitsAfterDecimalPoint:
- aMinWidth:
ToUtf8Bytes
Convert a string to a byte array, encoded as utf8
Parameters:
- aValue:
TryBinaryStringToUInt64
// Toffee
static func TryBinaryStringToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryBinaryStringToUInt64(_ aValue: String?) -> UInt64!
static UnsignedLong TryBinaryStringToUInt64(String aValue)
Parameters:
- aValue:
TryHexStringToUInt32
Convert a hex string to uint32, and returns null on failure, instead of an exception.
static UnsignedInteger TryHexStringToUInt32(String aValue)
Parameters:
- aValue:
TryHexStringToUInt64
Convert a hex string to uint64, and returns null on failure, instead of an exception.
static UnsignedLong TryHexStringToUInt64(String aValue)
Parameters:
- aValue:
TryToDouble
Convert a string to double, and returns null on failure, instead of an exception.
Parameters:
- aValue:
- aLocale:
TryToDoubleInvariant
Convert a string to double in the invariant culture, and returns null on failure, instead of an exception.
Parameters:
- aValue:
TryToInt32
Convert a string to int32, and returns null on failure, instead of an exception.
Parameters:
- aValue:
TryToInt64
Convert a string to int64, and returns null on failure, instead of an exception.
Parameters:
- aValue:
TryToIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- aValue:
TryToUInt64
// Toffee
static func TryToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryToUInt64(_ aValue: String?) -> UInt64!
static UnsignedLong TryToUInt64(String aValue)
Parameters:
- aValue:
TryToUIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Parameters:
- aValue:
Utf8BytesToString
Convert an utf8 byte array to a string, with an optionl length; if no length is given uses the length of the array itself.
Parameters:
- aBytes:
- aLength: