Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-4186

Replace all decayed array parameters (Type *) with std::vector.

    XMLWordPrintableJSON

Details

    Description

      Replace all decayed array parameters (Type *) with std::vector. For example

      void writeIntArray(int32_t* array, size_t length);
      int32_t* readIntArray(size_t& length);
      

      to

      void writeIntArray(const std::vector<int32_t>& array);
      std::vector<int32_t> readIntArray();
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbarrett Jacob Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 20m
                  5h 20m