ArrayExtensionsToHexString Method (Byte, Int32, Int32) |
Converts a byte array to a hex string.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntaxpublic static string ToHexString(
this byte[] buffer,
int offset,
int count
)
<ExtensionAttribute>
Public Shared Function ToHexString (
buffer As Byte(),
offset As Integer,
count As Integer
) As String
public:
[ExtensionAttribute]
static String^ ToHexString(
array<unsigned char>^ buffer,
int offset,
int count
)
[<ExtensionAttribute>]
static member ToHexString :
buffer : byte[] *
offset : int *
count : int -> string
Parameters
- buffer
- Type: SystemByte
The byte array to convert.
- offset
- Type: SystemInt32
The offset.
- count
- Type: SystemInt32
Number of significant bytes.
Return Value
Type:
String
A concatenation of hex values in a string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
See Also