CryptoSys PKI Pro Manual

Cnv.FromHex Method

Convert the specified string representation of a value consisting of hexadecimal (base 16) digits to an equivalent array of 8-bit unsigned integers.

Syntax

[C#]
public static byte[] FromHex(
	string s
)
[VB.NET]
Public Shared Function FromHex ( _
	s As String _
) As Byte()

Parameters

s
Hex-encoded string

Return Value

Binary data in byte array, or an empty array on error.

Remarks

Whitespace and ASCII punctuation characters are ignored, but other non-hex characters will cause an error.

See Also

VB6/C equivalent: CNV_BytesFromHexStr

[Contents] [Index]

[PREV: Cnv.FromBase64 Method...]   [Contents]   [Index]   
   [NEXT: Cnv.HexFilter Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.