xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_SerializeSimple()

Serializes values of simple data types.

Syntax

HB_SerializeSimple( <xValue> ) --> cBinaryData

Arguments

<xValue>
This is a value of simple data type, i.e. Valtype() must be C, D, L , M, N or U.

Return

The function returns the binary representation of the passed value as a character string.

Description

Function HB_SerializeSimple() is a utility function of xHarbour's serialization system, optimized for serializing 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 serialized using the functions HB_Serialize().

Note:  refer to the file source\rtl\hbserial.prg for a usage example of HB_SerializeSimple().

Info

See also:HB_Deserialize(), HB_DeserialBegin(), HB_Serialize()
Category: Serialization functions , xHarbour extensions
Source:rtl\hbsrlraw.c, rtl\hbserial.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe