| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Deserializes values of simple data types.
HB_DeserializeSimple( <cBinaryData> ) --> xValue
The function returns the deserialized value.
Function HB_DeserializeSimple() is optimized for deserializing simple data types only. These are Character, Date, Logic, Memo, Numeric and undefined (NIL). Complex data types (Array, Code block, Hash and Object) must be deserialized using the functions HB_DeserialBegin() and HB_DeserialNext().
| See also: | HB_Deserialize(), HB_DeserialBegin(), HB_Serialize(), HB_SerializeSimple() |
| Category: | Serialization functions , xHarbour extensions |
| Source: | rtl\hbsrlraw.c, rtl\hbserial.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example demonstrates (de)serialization of a simple data type
PROCEDURE Main
LOCAL cBinary, cSerial, xValue
cBinary := HB_SerializeSimple( Date() )
xValue := HB_DeserializeSimple( @cBinary )
? ValToPrg( xValue )
RETURN
http://www.xHarbour.com