[ 
https://issues.apache.org/jira/browse/GEODE-4186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347800#comment-16347800
 ] 

ASF subversion and git services commented on GEODE-4186:
--------------------------------------------------------

Commit 519d87fbd4fdabef412ce15da9c762faa0f7a734 in geode-native's branch 
refs/heads/develop from [~dkimura]
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=519d87f ]

GEODE-4186: Replace decayed array paremeters with std::vector (#194)



> Replace all decayed array parameters (Type *) with std::vector.
> ---------------------------------------------------------------
>
>                 Key: GEODE-4186
>                 URL: https://issues.apache.org/jira/browse/GEODE-4186
>             Project: Geode
>          Issue Type: Improvement
>          Components: native client
>            Reporter: Jacob S. Barrett
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 5h 20m
>  Remaining Estimate: 0h
>
> Replace all decayed array parameters (Type *) with std::vector. For example
> {code}
> void writeIntArray(int32_t* array, size_t length);
> int32_t* readIntArray(size_t& length);
> {code}
> to
> {code}
> void writeIntArray(const std::vector<int32_t>& array);
> std::vector<int32_t> readIntArray();
> {code}
> This removes the ambiguity around memory ownership, makes the method 
> functional (no out param), collocates the length and other array attributes 
> with the vector, and removes null.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to