Compare commits

..

4 Commits

Author SHA1 Message Date
Janine Liu aab6379936 One more unsigned fix
cesium-native / Quick Checks (push) Waiting to run Details
cesium-native / Linting (push) Waiting to run Details
cesium-native / Documentation (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.build_type}} (Debug, windows-2022) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.build_type}} (RelWithDebInfo, windows-2022) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (Debug, clang, macos-13) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (Debug, clang, ubuntu-22.04) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (Debug, gcc, ubuntu-24.04) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (RelWithDebInfo, clang, macos-13) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (RelWithDebInfo, clang, ubuntu-22.04) (push) Waiting to run Details
cesium-native / ${{matrix.platform}} / ${{matrix.compiler}} / ${{matrix.build_type}} (RelWithDebInfo, gcc, ubuntu-24.04) (push) Waiting to run Details
cesium-native / Emscripten v${{matrix.version}} ${{matrix.memory}}bit memory (32, 3.1.39) (push) Waiting to run Details
cesium-native / Emscripten v${{matrix.version}} ${{matrix.memory}}bit memory (32, 4.0.13) (push) Waiting to run Details
cesium-native / Emscripten v${{matrix.version}} ${{matrix.memory}}bit memory (64, 4.0.13) (push) Waiting to run Details
2025-11-24 11:12:01 -05:00
Janine Liu 3dbecb1a3b A few more sign corrections 2025-11-24 10:34:07 -05:00
Janine Liu 8d8bf1a0a0 Update changelog 2025-11-24 10:19:10 -05:00
Janine Liu 2dd508c30b Various unsigned match corrections 2025-11-24 10:18:07 -05:00
2 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,11 @@
# Change Log # Change Log
### ? - ?
##### Additions :tada:
- Added `bool` and `std::string_view` overloads for `PropertyArrayCopy`.
### v0.54.0 - 2025-11-17 ### v0.54.0 - 2025-11-17
##### Additions :tada: ##### Additions :tada:

View File

@ -271,7 +271,10 @@ public:
this->_storage[byteIndex] = std::byte(byte); this->_storage[byteIndex] = std::byte(byte);
} }
this->_view = PropertyArrayView<bool>(this->_storage, 0, numberOfElements); this->_view = PropertyArrayView<bool>(
this->_storage,
0,
static_cast<int64_t>(numberOfElements));
} }
/** @brief Default move constructor */ /** @brief Default move constructor */
@ -485,17 +488,17 @@ public:
this->_storage.resize(stringData.size() + offsetData.size()); this->_storage.resize(stringData.size() + offsetData.size());
std::memcpy(this->_storage.data(), stringData.data(), stringData.size()); std::memcpy(this->_storage.data(), stringData.data(), stringData.size());
std::memcpy( std::memcpy(
this->_storage.data() + stringData.size(), this->_storage.data() + static_cast<int64_t>(stringData.size()),
offsetData.data(), offsetData.data(),
offsetData.size()); offsetData.size());
this->_view = PropertyArrayView<std::string_view>( this->_view = PropertyArrayView<std::string_view>(
std::span<const std::byte>(this->_storage.begin(), stringData.size()), std::span<const std::byte>(this->_storage.begin(), stringData.size()),
std::span<const std::byte>( std::span<const std::byte>(
this->_storage.begin() + stringData.size(), this->_storage.begin() + static_cast<int64_t>(stringData.size()),
offsetData.size()), offsetData.size()),
offsetType, offsetType,
numberOfElements); static_cast<int64_t>(numberOfElements));
} }
/** @brief Default move constructor */ /** @brief Default move constructor */
@ -511,7 +514,7 @@ public:
this->_view = PropertyArrayView<std::string_view>( this->_view = PropertyArrayView<std::string_view>(
std::span<const std::byte>(this->_storage.begin(), valueSpanSize), std::span<const std::byte>(this->_storage.begin(), valueSpanSize),
std::span<const std::byte>( std::span<const std::byte>(
this->_storage.begin() + valueSpanSize, this->_storage.begin() + static_cast<int64_t>(valueSpanSize),
this->_storage.end()), this->_storage.end()),
rhs._view._stringOffsetType, rhs._view._stringOffsetType,
rhs._view.size()); rhs._view.size());
@ -525,7 +528,7 @@ public:
this->_view = PropertyArrayView<std::string_view>( this->_view = PropertyArrayView<std::string_view>(
std::span<const std::byte>(this->_storage.begin(), valueSpanSize), std::span<const std::byte>(this->_storage.begin(), valueSpanSize),
std::span<const std::byte>( std::span<const std::byte>(
this->_storage.begin() + valueSpanSize, this->_storage.begin() + static_cast<int64_t>(valueSpanSize),
this->_storage.end()), this->_storage.end()),
rhs._view._stringOffsetType, rhs._view._stringOffsetType,
rhs._view.size()); rhs._view.size());