Buffer Types Enumeration
Each of the structures described by the structure types enumeration contains fields that point to different kinds of buffers. When you allocate memory for such a structure using theOTAllocfunction (page 3-92), you can also specify that these buffers be allocated by specifying one or more of the constant names given by the buffer types enumeration.The length of the allocated buffer is at least as large as the size returned for the endpoint by the
OTGetEndpointInfofunction (page 3-82). For each buffer allocated, theOTAllocfunction sets themaxlenfield to the length of the buffer, and thelenfield to 0. To specify more than one constant name, use thebitORoperator to combine values.
enum { T_ADDR = 0x01, T_OPT = 0x02, T_UDATA = 0x04, T_ALL = 0xffff };Constant descriptions
T_ADDR- The
addrfield of theTBind,TCall,TUDErr,TUnitRequest, orTUnitDatastructures.T_OPT- The
optfield of theTOptMgmt,TCall,TUDErr,TRequest,TReply,TUnitRequest,TUnitReply, orTUnitDatastructures.T_UDATA- The
udatafield of theTCall,TDiscon,TUnitData,TRequest,TReply,TUnitRequest,orTUnitReplystructures. The value of theudata.maxlenfield depends upon the structure being allocated.T_ALL- All relevant fields of the desired structure are allocated.