Define UserData


Purpose

The Define UserData opcode is a binary opcode wrapper, typically serialized as part of the user block, storing user specific data in WHIP! data.  Since users can attach literally any meaning to the data that they would like to represent, UserData has been designed to store information as a binary blob of data. Syntax
 
Opcode format Opcode Operand Format Comments
Extended ASCII (UserData <ws><Tdata description><ws><IDataSize><ws><HData>) -
Extended Binary 0x0162 <Tdata description stored as ascii text><LDSize><BData>)+} -
Details Although it is advisable to serialize the Define UserData opcode as part of the User BlockRef, it could also be used in other blocks as a generic data wrapper.  In compressed mode this opcode will be compressed.
 
Example
(UserData 'userdata2' 6
    616263646566 )