{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/693","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/693/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/693/events","html_url":"https://github.com/cpputest/cpputest/pull/693","id":93777559,"number":693,"title":"Added support to get mock data via pointer.","user":{"login":"bithium","id":1537123,"avatar_url":"https://avatars.githubusercontent.com/u/1537123?v=3","gravatar_id":"","url":"https://api.github.com/users/bithium","html_url":"https://github.com/bithium","followers_url":"https://api.github.com/users/bithium/followers","following_url":"https://api.github.com/users/bithium/following{/other_user}","gists_url":"https://api.github.com/users/bithium/gists{/gist_id}","starred_url":"https://api.github.com/users/bithium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bithium/subscriptions","organizations_url":"https://api.github.com/users/bithium/orgs","repos_url":"https://api.github.com/users/bithium/repos","events_url":"https://api.github.com/users/bithium/events{/privacy}","received_events_url":"https://api.github.com/users/bithium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T12:34:02Z","updated_at":"2015-07-08T14:46:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cpputest/cpputest/pulls/693","html_url":"https://github.com/cpputest/cpputest/pull/693","diff_url":"https://github.com/cpputest/cpputest/pull/693.diff","patch_url":"https://github.com/cpputest/cpputest/pull/693.patch"},"body":"It can be useful to access the actual MockNamedValue object associated with a mock data and not a\r\ncopy, e.g., to use the size attribute that is already present in the MockNamedValue, to store the size of the data that the pointer hold by the MockNamedValue object has."},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/119608618","html_url":"https://github.com/cpputest/cpputest/pull/693#issuecomment-119608618","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/693","id":119608618,"user":{"login":"bithium","id":1537123,"avatar_url":"https://avatars.githubusercontent.com/u/1537123?v=3","gravatar_id":"","url":"https://api.github.com/users/bithium","html_url":"https://github.com/bithium","followers_url":"https://api.github.com/users/bithium/followers","following_url":"https://api.github.com/users/bithium/following{/other_user}","gists_url":"https://api.github.com/users/bithium/gists{/gist_id}","starred_url":"https://api.github.com/users/bithium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bithium/subscriptions","organizations_url":"https://api.github.com/users/bithium/orgs","repos_url":"https://api.github.com/users/bithium/repos","events_url":"https://api.github.com/users/bithium/events{/privacy}","received_events_url":"https://api.github.com/users/bithium/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T14:46:15Z","updated_at":"2015-07-08T14:46:15Z","body":"Hello,\r\n\r\nthis came up when I was overwriting the system __write__ function and wanted to store the data received by the function.\r\n\r\nMy solution was to create a new mock data to store the received data on the write, however I need a way to store how much data the buffer I save has.\r\n\r\nGiven that the __MockNamedValue__ class already has a field size, I wanted to reuse it for the purpose above.\r\n\r\nThe problem is that there is no way of accessing the object created after a __MockSupport::setData__ call. The __MockSupport::getData__ returns a copy of the object so calling __MockSupport::setData__ to create the object and then using __MockSupport::getData__ to set the size field does not work.\r\n"}}