Class ByteUtil
Inheritance
System.Object
ByteUtil
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Core.Lib.Util
Assembly: Catalyst.Core.Lib.dll
Syntax
public static class ByteUtil
Properties
| Improve this Doc View SourceEmptyByteArray
Declaration
public static byte[] EmptyByteArray { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ZeroByteArray
Declaration
public static byte[] ZeroByteArray { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Methods
| Improve this Doc View SourceAppendByte(Byte[], Byte)
Creates a copy of bytes and appends b to the end of it
Declaration
public static byte[] AppendByte(byte[] array, byte b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | array | |
System.Byte | b |
Returns
Type | Description |
---|---|
System.Byte[] |
GenerateRandomByteArray(Int32)
returns a random array of byte of the desired length
Declaration
public static byte[] GenerateRandomByteArray(int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |
InitialiseEmptyByteArray(Int32)
Declaration
public static byte[] InitialiseEmptyByteArray(int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |
Merge(Byte[][])
Declaration
public static byte[] Merge(params byte[][] arrays)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[][] | arrays |
|
Returns
Type | Description |
---|---|
System.Byte[] |
|