Class Extensions +
+Helper extension methods
+Inherited Members
+ + + +Namespace: chia.dotnet
+Assembly: chia-dotnet.dll
+Syntax
+public static class Extensions
+ Methods +
+ + | + Improve this Doc + + + View Source + + +ToBytesString(BigInteger)
+Format a number of bytes in human readable format
+Declaration
+public static string ToBytesString(this BigInteger byteCount)
+ Parameters
+Type | +Name | +Description | +
---|---|---|
BigInteger | +byteCount | +The number of bytes + |
+
Returns
+Type | +Description | +
---|---|
String | +A human readable string + |
+
Remarks
+byteCount will be cast to ulong
+ToBytesString(UInt32)
+Format a number of bytes in human readable format
+Declaration
+public static string ToBytesString(this uint byteCount)
+ Parameters
+Type | +Name | +Description | +
---|---|---|
UInt32 | +byteCount | +The number of bytes + |
+
Returns
+Type | +Description | +
---|---|
String | +A human readable string + |
+
ToBytesString(UInt64)
+Format a number of bytes in human readable format
+Declaration
+public static string ToBytesString(this ulong byteCount)
+ Parameters
+Type | +Name | +Description | +
---|---|---|
UInt64 | +byteCount | +The number of bytes + |
+
Returns
+Type | +Description | +
---|---|
String | +A human readable string + |
+