Menu

SysArray

Tim Lewis

The SysArray container holds fixed-length data structures sequentially in memory. It is based on [SysObj], can be dynamically sized and provides sorting and searching capabilities.

Each SysArray container has the following attributes:

  • Element Size - The size of each array element, in bytes.
  • Current Length - The current number of array elements.
  • Maximum Length - The number of array elements allocated.
  • Elements - Pointer to a buffer that contains Maximum Length elements, of which Current Length elements are curretly populated.
  • Copy - Function that copies the contents of one array element from one memory location to another.
  • Compare - Function that compares one array element to another and returns -1, 0, 1 (less than, equal to or greater than)
  • Empty - Function that releases any resources used by a single array element.

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.