C Structure class > Methods xHarbour Developers Network  

oC Structure class:pointer()

Changes the pointer to the internal binary buffer.

Syntax

:pointer( <pStructure>, [<lRecurse>] ) --> self

Arguments

<pStructure>
This is a pointer to structure data in memory.
<lRecurse>
This parameter defaults to .F. (false). It should be set to .T. (true) when the structure object maintains a nested structure. That is, it contains other structure objects in its instance variables.

Description

Method :pointer() is used to change the internal binary buffer of a structure object via a pointer. <pStructure> must be the memory address of :sizeOf() bytes. The method reads this number of bytes from memory and extracts from it the values for structure members. These values are assigned to the corresponding instance variables of the structure object.


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