- The language binding has many rules
- Rules depend on the IDL type and the parameter direction
- Three major cases
- Object references (interfaces)
- Fixed size types
- Variable size types
- Object references use reference counting garbage collection
- The reference counts are local and only control the life of the stub
- The referencing counting is thread safe
- Fixed sized types are generally passed on the stack
- This covers basic types like
long and some struct cases
- Variable sized types require rules about making and destroying copies of the data
- Supplied "var" classes simplify these rules
|