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/bindings/lib/array_internal.h" | 5 #include "mojo/public/cpp/bindings/lib/array_internal.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 ArrayDataTraits<bool>::BitRef::~BitRef() { | 10 ArrayDataTraits<bool>::BitRef::~BitRef() { |
11 } | 11 } |
12 | 12 |
13 ArrayDataTraits<bool>::BitRef::BitRef(uint8_t* storage, uint8_t mask) | 13 ArrayDataTraits<bool>::BitRef::BitRef(uint8_t* storage, uint8_t mask) |
14 : storage_(storage), | 14 : storage_(storage), |
15 mask_(mask) { | 15 mask_(mask) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 Message* message) { | 50 Message* message) { |
51 for (uint32_t i = 0; i < header->num_elements; ++i) { | 51 for (uint32_t i = 0; i < header->num_elements; ++i) { |
52 if (!DecodeHandle(&elements[i], message->mutable_handles())) | 52 if (!DecodeHandle(&elements[i], message->mutable_handles())) |
53 return false; | 53 return false; |
54 } | 54 } |
55 return true; | 55 return true; |
56 } | 56 } |
57 | 57 |
58 } // namespace internal | 58 } // namespace internal |
59 } // namespace mojo | 59 } // namespace mojo |
OLD | NEW |