MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setRanges

Method setRanges

source/core/StarMultiTable.hpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void setRanges(RangeArray const& ranges) {
49 SizeArray arraySize;
50
51 for (size_t dim = 0; dim < Rank; ++dim) {
52 arraySize[dim] = ranges[dim].size();
53 m_ranges[dim] = ranges[dim];
54 }
55
56 m_array.resize(arraySize);
57 }
58
59 // Set array element based on index.
60 void set(IndexArray const& index, Element const& element) {

Callers 1

TESTFunction · 0.80

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by 1

TESTFunction · 0.64