| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 part of bindings; | 5 part of bindings; |
| 6 | 6 |
| 7 int align(int size) => size + (kAlignment - (size % kAlignment)) % kAlignment; | 7 int align(int size) => size + (kAlignment - (size % kAlignment)) % kAlignment; |
| 8 | 8 |
| 9 const int kAlignment = 8; | 9 const int kAlignment = 8; |
| 10 const int kSerializedHandleSize = 4; | 10 const int kSerializedHandleSize = 4; |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 throw new MojoCodecError( | 841 throw new MojoCodecError( |
| 842 'Incorrect header for map. The size is incorrect.'); | 842 'Incorrect header for map. The size is incorrect.'); |
| 843 } | 843 } |
| 844 if (header.version != kMapStructHeader.version) { | 844 if (header.version != kMapStructHeader.version) { |
| 845 throw new MojoCodecError( | 845 throw new MojoCodecError( |
| 846 'Incorrect header for map. The version is incorrect.'); | 846 'Incorrect header for map. The version is incorrect.'); |
| 847 } | 847 } |
| 848 return header; | 848 return header; |
| 849 } | 849 } |
| 850 } | 850 } |
| OLD | NEW |