1#!F-adobe-helvetica-medium-r-normal--18* 2#!N 3#!N #!Rdxts DXTypeSize, DXCategorySize 4#!N #!N Function #!N #!N Return size information. #!N #!N Syntax 5#!N #!F-adobe-times-bold-r-normal--18* #include <dx/dx.h> int DXTypeSize(Type t) int DXCategorySize(Category c) #!EF 6#!N #!N Functional Details #!N #!N #!F-adobe-times-bold-r-normal--18* DXTypeSize #!EF returns the 7size in bytes of a variable of type #!F-adobe-times-bold-r-normal--18* t #!EF 8. #!N #!F-adobe-times-bold-r-normal--18* DXCategorySize #!EF returns the size multiplier for category 9 #!F-adobe-times-bold-r-normal--18* c #!EF . #!N #!N For a variable of type 10 #!F-adobe-times-bold-r-normal--18* t #!EF and category #!F-adobe-times-bold-r-normal--18* c #!EF , the size 11in bytes is #!F-adobe-times-bold-r-normal--18* DXTypeSize(t) * DXCategorySize(c) #!EF . #!N Note: 12This is the size of a single item of that type 13(e.g., a single component of a 3-vector). #!F-adobe-times-bold-r-normal--18* DXGetItemSize #!EF , 14in contrast, returns the size in bytes of the 3-vector. #!N 15#!N #!N The type is one of the following: #!N #!N 16The category is either #!F-adobe-times-bold-r-normal--18* CATEGORY_REAL #!EF or #!F-adobe-times-bold-r-normal--18* CATEGORY_COMPLEX #!EF 17. #!N #!N Return Value #!N #!N #!F-adobe-times-bold-r-normal--18* DXTypeSize #!EF returns 18the size in bytes. #!F-adobe-times-bold-r-normal--18* DXCategorySize #!EF returns the multiplier in 19bytes. #!N #!N See Also #!N #!N #!F-adobe-times-bold-r-normal--18* #!Ldxgis,dxall1245 h DXGetItemSize #!EL #!EF #!N 20#!N #!Lty,dxall1101 h Setting Data Types #!EL . #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N 21#!N #!Ldxuref,dxall1404 h DXUnreference #!EL #!N #!F-adobe-times-medium-i-normal--18* #!N 22