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

Side by Side Diff: runtime/include/dart_api.h

Issue 9104041: Added API Dart_PostCMessage for posting a Dart_CMessage structure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 1434
1435 DART_EXPORT Dart_CMessage* Dart_DecodeMessage(uint8_t* message, 1435 DART_EXPORT Dart_CMessage* Dart_DecodeMessage(uint8_t* message,
1436 intptr_t length, 1436 intptr_t length,
1437 Allocator allocator); 1437 Allocator allocator);
1438 // TODO(sgjesse): Remove length parameter if that is part of the 1438 // TODO(sgjesse): Remove length parameter if that is part of the
1439 // message header. 1439 // message header.
1440 // TODO(sgjesse): Should this function have flags for: 1440 // TODO(sgjesse): Should this function have flags for:
1441 // Don't fill in allocated (caller uses zone like allocation) 1441 // Don't fill in allocated (caller uses zone like allocation)
1442 // Don't Never point into original_message for e.g. byte arrays. 1442 // Don't Never point into original_message for e.g. byte arrays.
1443 1443
1444 /**
1445 * Encodes a Dart_CMessage structure into a Dart message.
1446 */
1447 DART_EXPORT uint8_t* Dart_EncodeMessage(Dart_CMessage* message,
1448 Allocator allocator);
1449 // TODO(sgjesse): Return the length of the encoded message.
siva 2012/02/01 01:01:33 Instead of an API call to encode a CMessage would
Søren Gjesse 2012/02/02 14:25:59 Done.
1450
1444 #endif // INCLUDE_DART_API_H_ 1451 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698