diff --git a/include/cpp/marshal/Definitions.inc b/include/cpp/marshal/Definitions.inc index 7e70e0eb1..d4bdc0d00 100644 --- a/include/cpp/marshal/Definitions.inc +++ b/include/cpp/marshal/Definitions.inc @@ -129,10 +129,10 @@ namespace cpp bool operator!=(const ValueReference& inRHS) const; template - K get(int index); + K get(int64_t index); template - void set(int index, K value); + void set(int64_t index, K value); }; template @@ -183,19 +183,19 @@ namespace cpp TPtr operator->() const; template - K get(int index); + K get(int64_t index); template - void set(int index, K value); + void set(int64_t index, K value); }; template struct View final { ::cpp::Pointer ptr; - size_t length; + int64_t length; - View(::cpp::Pointer _ptr, size_t _length); + View(::cpp::Pointer _ptr, int64_t _length); void clear(); void fill(T value); diff --git a/include/cpp/marshal/PointerReference.hpp b/include/cpp/marshal/PointerReference.hpp index 41830620e..f007abadd 100644 --- a/include/cpp/marshal/PointerReference.hpp +++ b/include/cpp/marshal/PointerReference.hpp @@ -57,14 +57,14 @@ inline cpp::marshal::PointerReference::PointerReference(const Boxed& inRHS template template -inline K cpp::marshal::PointerReference::get(int index) +inline K cpp::marshal::PointerReference::get(int64_t index) { return (*Super::ptr)[index]; } template template -inline void cpp::marshal::PointerReference::set(int index, K value) +inline void cpp::marshal::PointerReference::set(int64_t index, K value) { (*Super::ptr)[index] = value; } diff --git a/include/cpp/marshal/ValueReference.hpp b/include/cpp/marshal/ValueReference.hpp index 3123ec1ea..53c2cf394 100644 --- a/include/cpp/marshal/ValueReference.hpp +++ b/include/cpp/marshal/ValueReference.hpp @@ -56,14 +56,14 @@ inline cpp::marshal::ValueReference::ValueReference(const Boxed& inRHS) : template template -inline K cpp::marshal::ValueReference::get(int index) +inline K cpp::marshal::ValueReference::get(int64_t index) { return (*Super::ptr)[index]; } template template -inline void cpp::marshal::ValueReference::set(int index, K value) +inline void cpp::marshal::ValueReference::set(int64_t index, K value) { (*Super::ptr)[index] = value; } diff --git a/include/cpp/marshal/View.hpp b/include/cpp/marshal/View.hpp index 273da0b97..6b2ad2d1f 100644 --- a/include/cpp/marshal/View.hpp +++ b/include/cpp/marshal/View.hpp @@ -5,7 +5,7 @@ #include template -inline cpp::marshal::View::View(::cpp::Pointer _ptr, size_t _length) : ptr(_ptr), length(_length) {} +inline cpp::marshal::View::View(::cpp::Pointer _ptr, int64_t _length) : ptr(_ptr), length(_length) {} template inline bool cpp::marshal::View::tryCopyTo(const View& destination)