ByteExtensionsToHexaDump(IEnumerableByte, Int32, Boolean) Method
Dumps the content of a Byte array to a readable hexadecimal table.
Namespace: DevCase.Extensions.ByteExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static string ToHexaDump(
this IEnumerable<byte> buffer,
int length,
bool addHeader = true
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ToHexaDump (
buffer As IEnumerable(Of Byte),
length As Integer,
Optional addHeader As Boolean = true
) As String
Dim buffer As IEnumerable(Of Byte)
Dim length As Integer
Dim addHeader As Boolean
Dim returnValue As String
returnValue = buffer.ToHexaDump(length,
addHeader)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static String^ ToHexaDump(
IEnumerable<unsigned char>^ buffer,
int length,
bool addHeader = true
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ToHexaDump :
buffer : IEnumerable<byte> *
length : int *
?addHeader : bool
(* Defaults:
let _addHeader = defaultArg addHeader true
*)
-> string
No code example is currently available or this language may not be supported.
- buffer IEnumerableByte
-
The source Byte array.
- length Int32
-
The number of bytes to read from the buffer.
- addHeader Boolean (Optional)
-
Optionally, adds a default header to the table columns.
Default value: True
String
The resulting readable hexadecimal table.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableByte. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim myString As String = "Hello World!, this is a test."
Dim bytes As Byte() = Encoding.Default.GetBytes(myString)
Dim hexaDump As String = bytes.ToHexaDump(bytes.Length)
Console.WriteLine(hexaDump)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.