Integer operations

There is a series of functions for pointers to the different types of integers:

  • int32   
  • int64   
  • uint32  
  • uint64  
  • uintptr 

This includes a specific type of integer that represents a pointer, uintptr. The operation available for these types are as follows:

  • Load: Retrieves the integer value from the pointer
  • Store: Stores the integer value in the pointer
  • Add: Adds the specified delta to the pointer value
  • Swap: Stores a new value in the pointer and returns the old one
  • CompareAndSwap: Swaps the new value for the old one only if this is the same as the specified one
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.76.72