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 class MessageHeader { | 7 class MessageHeader { |
8 static const int kSimpleMessageSize = 16; | 8 static const int kSimpleMessageSize = 16; |
9 static const int kSimpleMessageVersion = 0; | 9 static const int kSimpleMessageVersion = 0; |
10 static const int kMessageWithRequestIdSize = 24; | 10 static const int kMessageWithRequestIdSize = 24; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Message get payload { | 118 Message get payload { |
119 if (_payload == null) { | 119 if (_payload == null) { |
120 var truncatedBuffer = new ByteData.view(buffer.buffer, header.size); | 120 var truncatedBuffer = new ByteData.view(buffer.buffer, header.size); |
121 _payload = new Message(truncatedBuffer, handles); | 121 _payload = new Message(truncatedBuffer, handles); |
122 } | 122 } |
123 return _payload; | 123 return _payload; |
124 } | 124 } |
125 | 125 |
126 String toString() => "ServiceMessage($header, $_payload)"; | 126 String toString() => "ServiceMessage($header, $_payload)"; |
127 } | 127 } |
OLD | NEW |