Browse Source

positron review: fix ambiguity in "#Rules For Parameters Of Primitive-Type"

quote positron:
"About primitive-type parameters, “The caller has to allocate memory for T”: I disagree.  There is no memory to allocate.  In fact those parameters can live their entire life in registers. On the other hand, the memory pointed by T* needs to be allocated by the caller."
main
heck 2 years ago
parent
commit
f2b9c373af
  1. 8
      README.md

8
README.md

@ -168,10 +168,14 @@ Where `T` any of the respective IDL-Types (not their respective c-type, as menti
#### Rules For Parameters Of Primitive-Type
The caller has to allocate memory for `T`.
For mode `Update`, the callee is allowed to mutate the memory pointed to by `T*`.
(1) A primitive-type cannot be consumed or produced because it's always statically allocated.
### Update
The caller has to allocate memory for `T*`.
The callee is allowed to mutate the memory pointed to by `T*`.
The caller is responsible to free the memory pointed to by `T*`.
#### Rules For Parameters Of Object-Type
##### Read

Loading…
Cancel
Save