Class ByteHelper
Inheritance
System.Object
ByteHelper
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:EvilDICOM.Core.Helpers
Assembly:EvilDICOM.dll
Syntax
public class ByteHelper
Methods
View SourceAreEqual(Byte[], Byte[])
Declaration
public static bool AreEqual(byte[] bytes, byte[] toCompare)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes | |
| System.Byte[] | toCompare |
Returns
| Type | Description |
|---|---|
| System.Boolean |
ByteArrayToHexString(Byte[])
This method converts an array of bytes to a hexadecimal string
Declaration
public static string ByteArrayToHexString(byte[] Bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | Bytes | the array of bytes to be converted |
Returns
| Type | Description |
|---|---|
| System.String | a hexadecimal string representing the array of bytes passed in |
ByteToHexString(Byte)
This method converts an array of bytes to a hexadecimal string
Declaration
public static string ByteToHexString(byte b)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | b |
Returns
| Type | Description |
|---|---|
| System.String | a hexadecimal string representing the array of bytes passed in |
GetHexStringArray(Byte[])
Declaration
public static string[] GetHexStringArray(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes |
Returns
| Type | Description |
|---|---|
| System.String[] |
HexStringToByteArray(String)
This method converts a hexadecimal string to an array of bytes.
Declaration
public static byte[] HexStringToByteArray(string hexString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | hexString | the hexadecimal string to be converted |
Returns
| Type | Description |
|---|---|
| System.Byte[] | an array of bytes representing the hexadecimal string passed in |