| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/public/cpp/bindings/lib/array_internal.h" | 5 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <sstream> | 10 #include <sstream> |
| 8 | 11 |
| 9 namespace mojo { | 12 namespace mojo { |
| 10 namespace internal { | 13 namespace internal { |
| 11 | 14 |
| 12 std::string MakeMessageWithArrayIndex(const char* message, | 15 std::string MakeMessageWithArrayIndex(const char* message, |
| 13 size_t size, | 16 size_t size, |
| 14 size_t index) { | 17 size_t index) { |
| 15 std::ostringstream stream; | 18 std::ostringstream stream; |
| 16 stream << message << ": array size - " << size << "; index - " << index; | 19 stream << message << ": array size - " << size << "; index - " << index; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles( | 68 void ArraySerializationHelper<Handle, true>::DecodePointersAndHandles( |
| 66 const ArrayHeader* header, | 69 const ArrayHeader* header, |
| 67 ElementType* elements, | 70 ElementType* elements, |
| 68 std::vector<Handle>* handles) { | 71 std::vector<Handle>* handles) { |
| 69 for (uint32_t i = 0; i < header->num_elements; ++i) | 72 for (uint32_t i = 0; i < header->num_elements; ++i) |
| 70 DecodeHandle(&elements[i], handles); | 73 DecodeHandle(&elements[i], handles); |
| 71 } | 74 } |
| 72 | 75 |
| 73 } // namespace internal | 76 } // namespace internal |
| 74 } // namespace mojo | 77 } // namespace mojo |
| OLD | NEW |