Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: mojo/dart/packages/mojo/lib/src/codec.dart

Issue 1441033002: Move mojo and mojom from mojo/public/dart to mojo/dart/packages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 throw new MojoCodecError( 899 throw new MojoCodecError(
900 'Incorrect header for map. The size is incorrect.'); 900 'Incorrect header for map. The size is incorrect.');
901 } 901 }
902 if (header.version != kMapStructHeader.version) { 902 if (header.version != kMapStructHeader.version) {
903 throw new MojoCodecError( 903 throw new MojoCodecError(
904 'Incorrect header for map. The version is incorrect.'); 904 'Incorrect header for map. The version is incorrect.');
905 } 905 }
906 return header; 906 return header;
907 } 907 }
908 } 908 }
OLDNEW
« no previous file with comments | « mojo/dart/packages/mojo/lib/src/buffer.dart ('k') | mojo/dart/packages/mojo/lib/src/control_message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698