Created
January 3, 2014 01:42
-
-
Save jerstlouis/8231051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property Container<int> foo | |
{ | |
set | |
{ | |
BuiltInContainer<int> * array = (void *)value; | |
// Use array->count and array->data | |
} | |
get | |
{ | |
int count; | |
BuiltInContainer<int> * array = new0 BuiltInContainer<int>[1]; | |
// Set array->count, allocate memory for array->data, write into array->data | |
return (Container<int>)array; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment