ByteSizeMethod
    
    
    Returns the size (in bytes)  of one unit of data for this data type
    
    
    
      Example 1:   Displaying the data type name and size of a variable
      
        
      
        
          
Dim MyVariable = uc.DefineVariable("MyVariable")
Console.WriteLine("MyVariable type: " + MyVariable.GetDataType().Name()) 
Console.WriteLine("MyVariable size: " + MyVariable.GetDataType().ByteSize()) 
          
        
       
      
        
          
var MyVariable = uc.DefineVariable("MyVariable");
Console.WriteLine("MyVariable type: " + MyVariable.GetDataType().Name()); 
Console.WriteLine("MyVariable size: " + MyVariable.GetDataType().ByteSize()); 
          
        
       
      
        
          
      WriteLn('MyVariable type: ' + MyVariable.GetDataType().Name()); 
      WriteLn('MyVariable size: ' + MyVariable.GetDataType().ByteSize()); 
          
        
       
      
        
          
auto MyVariable = uc.DefineVariable("MyVariable");
cout << "MyVariable type: " << MyVariable.GetDataType().Name() << endl; 
cout << "MyVariable size: " << MyVariable.GetDataType().ByteSize() << endl; 
          
        
       
      
        
          
auto MyVariable = uc.DefineVariable("MyVariable");
Console::WriteLine("MyVariable type: " + MyVariable.GetDataType().Name()); 
Console::WriteLine("MyVariable size: " + MyVariable.GetDataType().ByteSize()); 
          
        
       
       
     
    
      DLL import code
      
        
        
          
            
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="ByteSize")> _
Private Function ByteSize__(ByVal DataTypeHandle As IntPtr) As  Int32
End Function
            
          
         
        
          
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="ByteSize")]
protected static extern  Int32 ByteSize_(IntPtr DataTypeHandle);
            
          
         
        
          
            
{DLLImport}function ByteSize__(DataTypeHandle: System.Pointer):  Int32; cdecl; external uCalcDLL name 'ByteSize';
            
          
         
        
          
            
typedef  int32_t (* __ByteSize)(void *DataTypeHandle); 
            
          
         
        
          
            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "ByteSize")]
static Int32 ByteSize_(void *  DataTypeHandle);