You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2018/04/20 19:56:16 UTC

[jira] [Closed] (GEODE-4186) Replace all decayed array parameters (Type *) with std::vector.

     [ https://issues.apache.org/jira/browse/GEODE-4186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Baker closed GEODE-4186.
--------------------------------

> 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)