update pvD array handling

Interface only uses shared_vector<const T>
storage also uses only const.
This commit is contained in:
Michael Davidsaver
2013-07-25 17:22:16 -04:00
parent 569bd3b681
commit 9ac030169a
2 changed files with 26 additions and 39 deletions
+2 -2
View File
@@ -379,7 +379,7 @@ public:
* @param count The number of elements.
*/
template<typename T>
inline void putArray(T* values, std::size_t count);
inline void putArray(const T* values, std::size_t count);
/**
* Get an array of type {@code T} from the byte buffer.
* The position is adjusted.
@@ -842,7 +842,7 @@ private:
}
template<typename T>
inline void ByteBuffer::putArray(T* values, std::size_t count)
inline void ByteBuffer::putArray(const T* values, std::size_t count)
{
// this avoids int8 specialization, compiler will take care if optimization, -O2 or more
if (sizeof(T) == 1)