Show / Hide Table of Contents

Class ByteArrayFormatters

The static methods in this class format byte arrays into strings of hexadecimal numerals for display on reports and in windows.

Inheritance
System.Object
ByteArrayFormatters
Namespace: WizardWrx.Core
Assembly: WizardWrx.Core.dll
Syntax
public static class ByteArrayFormatters : object

Fields

| Improve this Doc View Source

BYTES_TO_STRING_BLOCK_OF_4

Use this to set ByteArrayToHexDigitString argument puintGroupSize to insert a space between every 4th byte.

Declaration
public const uint BYTES_TO_STRING_BLOCK_OF_4 = null
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

BYTES_TO_STRING_BLOCK_OF_8

Use this to set ByteArrayToHexDigitString argument puintGroupSize to insert a space between every 8th byte.

Declaration
public const uint BYTES_TO_STRING_BLOCK_OF_8 = null
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

BYTES_TO_STRING_NO_SPACING

Use this to set ByteArrayToHexDigitString argument puintGroupSize to format the string without any spaces.

Declaration
public const uint BYTES_TO_STRING_NO_SPACING = null
Field Value
Type Description
System.UInt32
Remarks

This constant is intended primarily for internal use by the first overload, which omits the second argument, to call the second overload, which does the work.

Methods

| Improve this Doc View Source

ByteArrayToHexDigitString(Byte[])

Convert a byte array into a printable hexadecimal representation.

Declaration
public static string ByteArrayToHexDigitString(byte[] pbytInputData)
Parameters
Type Name Description
System.Byte[] pbytInputData

Specify the byte array to be formatted. Any byte array will do.

Returns
Type Description
System.String

The return value is a string that contains two characters for each byte in the array.

| Improve this Doc View Source

ByteArrayToHexDigitString(Byte[], UInt32)

Convert a byte array into a printable hexadecimal representation.

Declaration
public static string ByteArrayToHexDigitString(byte[] pbytInputData, uint puintGroupSize)
Parameters
Type Name Description
System.Byte[] pbytInputData

Specify the byte array to be formatted. Any byte array will do.

System.UInt32 puintGroupSize

Specify the number of bytes to display as a group.

Returns
Type Description
System.String

The return value is a string that contains two characters for each byte in the array, plus one space between every puintGroupSizeth byte.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX