Class StaticHelpers
- Namespace
- CStructSharp
- Assembly
- CStructSharp.dll
Contains small conversion helpers shared by examples, tests, and callers.
public static class StaticHelpers
- Inheritance
-
StaticHelpers
- Inherited Members
Methods
ParseHexDataContent(string)
Converts readable hexadecimal text into bytes for examples and tests. Whitespace is accepted as a separator; all other non-hexadecimal characters and odd digit counts are rejected.
public static byte[] ParseHexDataContent(this string hexData)
Parameters
hexDatastringHexadecimal byte pairs with optional whitespace separators.
Returns
- byte[]
A new array containing the decoded bytes.
Exceptions
- ArgumentNullException
hexDatais null.- FormatException
The input contains a non-hexadecimal character or an incomplete byte.