Util Class |
Namespace: Guardtime.KSI.Utils
The Util type exposes the following members.
| Name | Description | |
|---|---|---|
| ArrayFillT |
Fill array with specific value
| |
| ArrayToStringT |
Returns array elements as a string (elements are separated by comma).
| |
| Clone(Byte) |
Clone given byte array
| |
| Clone(Byte, Int32, Int32) |
Clone part of byte array
| |
| ConvertDateTimeToUnixTime |
Convert DateTime to unix time.
| |
| ConvertUnixTimeToDateTime |
Convert unix time to UTC DateTime.
| |
| DecodeNullTerminatedUtf8String |
Decode null terminated UTF-8 string from bytes.
| |
| DecodeUnsignedLong |
Decode byte array to unsigned long.
| |
| EncodeNullTerminatedUtf8String |
Encode null terminated byte array to UTF-8 string.
| |
| EncodeUnsignedLong |
Encode unsigned long to byte array.
| |
| GetGreatestCommonDivisor |
Find the Greatest Common Divisor
| |
| GetLeastCommonMultiple |
Find the Least Common Multiple
| |
| GetRandomUnsignedLong |
Get random unsigned long.
| |
| GetTlvLength(Byte) | ||
| GetTlvLength(ITlvTag) |
Write TLV object to given stream.
| |
| IsArrayEqualT(T, T) |
Are given arrays equal with same data ordering.
| |
| IsArrayEqualT(T, T, Int32, Int32) |
Are parts of given arrays equal
| |
| IsOneValueEqualToT |
Checks is exactly one value is equal to given/expected value.
| |
| TabPrefixString |
Put tab prefix instead of new rows.
|