Click or drag to resize

Util Class

Utilities object.
Inheritance Hierarchy
SystemObject
  Guardtime.KSI.UtilsUtil

Namespace:  Guardtime.KSI.Utils
Assembly:  ksi-net-api (in ksi-net-api.dll) Version: 3.11.534.0 (3.11.534.0)
Syntax
public static class Util

The Util type exposes the following members.

Methods
  NameDescription
Public methodStatic memberArrayFillT
Fill array with specific value
Public methodStatic memberArrayToStringT
Returns array elements as a string (elements are separated by comma).
Public methodStatic memberClone(Byte)
Clone given byte array
Public methodStatic memberClone(Byte, Int32, Int32)
Clone part of byte array
Public methodStatic memberConvertDateTimeToUnixTime
Convert DateTime to unix time.
Public methodStatic memberConvertUnixTimeToDateTime
Convert unix time to UTC DateTime.
Public methodStatic memberDecodeNullTerminatedUtf8String
Decode null terminated UTF-8 string from bytes.
Public methodStatic memberDecodeUnsignedLong
Decode byte array to unsigned long.
Public methodStatic memberEncodeNullTerminatedUtf8String
Encode null terminated byte array to UTF-8 string.
Public methodStatic memberEncodeUnsignedLong
Encode unsigned long to byte array.
Public methodStatic memberGetGreatestCommonDivisor
Find the Greatest Common Divisor
Public methodStatic memberGetLeastCommonMultiple
Find the Least Common Multiple
Public methodStatic memberGetRandomUnsignedLong
Get random unsigned long.
Public methodStatic memberGetTlvLength(Byte)
Public methodStatic memberGetTlvLength(ITlvTag)
Write TLV object to given stream.
Public methodStatic memberIsArrayEqualT(T, T)
Are given arrays equal with same data ordering.
Public methodStatic memberIsArrayEqualT(T, T, Int32, Int32)
Are parts of given arrays equal
Public methodStatic memberIsOneValueEqualToT
Checks is exactly one value is equal to given/expected value.
Public methodStatic memberTabPrefixString
Put tab prefix instead of new rows.
Top
See Also