You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Data Flow Annotations
Sometimes when procedures take pointer arguments, it can ambiguous whether the programmer intends on only reading from, only writing too, or both reading from and writing to the pointer.
In order to avoid ambiguity, data flow annotations can be used to explicitly state the intention of how a pointer argument will be used. Data flow annotations are NOT enforced, and only exist to help the reader.
There are three types of data flows:
in - The pointer is only to be read from
out - The pointer is only to be written to
inout - The pointer is for both writing to and reading from