|
|
@ -616,14 +616,14 @@ inline void RepeatedField<Element>::Truncate(int new_size) { |
|
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
template <typename Element> |
|
|
|
inline void RepeatedField<Element>::MoveArray( |
|
|
|
inline void RepeatedField<Element>::MoveArray( |
|
|
|
Element to[], Element from[], int size) { |
|
|
|
Element to[], Element from[], int array_size) { |
|
|
|
memcpy(to, from, size * sizeof(Element)); |
|
|
|
memcpy(to, from, array_size * sizeof(Element)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename Element> |
|
|
|
template <typename Element> |
|
|
|
inline void RepeatedField<Element>::CopyArray( |
|
|
|
inline void RepeatedField<Element>::CopyArray( |
|
|
|
Element to[], const Element from[], int size) { |
|
|
|
Element to[], const Element from[], int array_size) { |
|
|
|
memcpy(to, from, size * sizeof(Element)); |
|
|
|
memcpy(to, from, array_size * sizeof(Element)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|