FTD2XX_NET.FTDI.EEUserAreaSize C# (CSharp) Method

EEUserAreaSize() public method

Gets the size of the EEPROM user area.
public EEUserAreaSize ( UInt32 &UASize ) : FT_STATUS
UASize System.UInt32 The EEPROM user area size in bytes.
return FT_STATUS
        public FT_STATUS EEUserAreaSize(ref UInt32 UASize)
        {
            // Initialise ftStatus to something other than FT_OK
            FT_STATUS ftStatus = FT_STATUS.FT_OTHER_ERROR;

            // If the DLL hasn't been loaded, just return here
            if (hFTD2XXDLL == IntPtr.Zero)
                return ftStatus;

            // Check for our required function pointers being set up
            if (pFT_EE_UASize != IntPtr.Zero)
            {
                tFT_EE_UASize FT_EE_UASize = (tFT_EE_UASize)Marshal.GetDelegateForFunctionPointer(pFT_EE_UASize, typeof(tFT_EE_UASize));

                if (ftHandle != IntPtr.Zero)
                {
                    ftStatus = FT_EE_UASize(ftHandle, ref UASize);
                }
            }
            else
            {
                if (pFT_EE_UASize == IntPtr.Zero)
                {
                    LogB.Debug("FTD2XX: Failed to load function FT_EE_UASize.");
                }
            }
            return ftStatus;
        }