Show / Hide Table of Contents
View Source

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 Source

AreEqual(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
View Source

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

View Source

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

View Source

GetHexStringArray(Byte[])

Declaration
public static string[] GetHexStringArray(byte[] bytes)
Parameters
Type Name Description
System.Byte[] bytes
Returns
Type Description
System.String[]
View Source

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

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX