A general-purpose result buffer (resbuf) structure handles all of the AutoCAD data types. Type codes are defined to specify the data types in a result buffer.