ExternalFile
 
Component ExternalFile
External Binary File Converter
Component Level: High
Category: SW-Data
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • GetSize - This method returns the number of elements of the array representing the binary file (= length of the file in bytes).

      ANSIC prototype: dword GetSize(void)
    • Return value:dword - Size of the array

  • GetAddr - This method returns a pointer to the array of values representing the binary file (e.g. pointer to the first element of the array).

      ANSIC prototype: byte* GetAddr(void)
    • Return value:void* - Pointer to the constant array

  • GetValue - This method returns an element (one byte) of the array representing the binary file. The values are numbered from zero (index=0 and more).

      ANSIC prototype: byte GetValue(dword Index)
    • Index:dword - Index of the element (0 to FileLength-1)
    • Return value:byte - Value of the array element


Note: Some methods can be implemented as macros.