Code Snippets Database
Control Box
Requested snippet
This page displays the requested TryHexToBytes snippet.
You can choose a category, perform a search or generate a Pascal unit containing the snippet by using the Control Box.
- TryHexToBytes
-
Writes the bytes represented by a hexadecimal string into a byte array. Returns True on success or False if HexStr is either empty or contains invalid hex characters.
function TryHexToBytes(HexStr: string; out Bytes: TBytes): Boolean; begin SetLength(Bytes, HexByteSize(HexStr)); Result := TryHexToBuf(HexStr, Bytes[0]); end;
Kind of Snippet: RoutineRequired units: None.Supported Compilers:D2 D3 D4 D5 D6 D7 D2005
(Win32)D2006
(Win32)D2007 D2009
(Win32)D2010
(Win32)Free
Pascal










This snippet cannot be included in generated units.
