OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |