Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The Types API provides a few functions for dealing with some fundamental types in WinGate components. Primarily these are string types and the API manages the allocation and freeing of any memory involved. This allows API's to return new strings to the client code and have the client code delete those strings when they no longer need them, regardless of what heap each uses. In functions where a heap allocation is acceptable (most) it avoids having to have functions that take buffer pointers and sizes as arguments, with the possibility of the buffer not being large enough. 

 

 

 

  • No labels