C Structure class > Methods |
Assigns a binary character string to the internal buffer.
:buffer( <cBuffer>, [<lRecurse>] ) --> self
Method :buffer() is used to change the internal binary buffer of a structure object. <cBuffer> must be a binary character string with :sizeOf() bytes. If the string contains less characters, Chr(0) is added up to the correct length. The method extracts the values for each structure member from <cBuffer> and assigns them to the corresponding instance variables of the structure object.
http://www.xHarbour.com