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 BIN_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
10 | 10 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 private: | 435 private: |
436 DISALLOW_COPY_AND_ASSIGN(CObjectDouble); | 436 DISALLOW_COPY_AND_ASSIGN(CObjectDouble); |
437 }; | 437 }; |
438 | 438 |
439 | 439 |
440 class CObjectString : public CObject { | 440 class CObjectString : public CObject { |
441 public: | 441 public: |
442 DECLARE_COBJECT_CONSTRUCTORS(String) | 442 DECLARE_COBJECT_CONSTRUCTORS(String) |
443 | 443 |
444 int Length() const { return strlen(cobject_->value.as_string); } | 444 intptr_t Length() const { return strlen(cobject_->value.as_string); } |
445 char* CString() const { return cobject_->value.as_string; } | 445 char* CString() const { return cobject_->value.as_string; } |
446 | 446 |
447 private: | 447 private: |
448 DISALLOW_COPY_AND_ASSIGN(CObjectString); | 448 DISALLOW_COPY_AND_ASSIGN(CObjectString); |
449 }; | 449 }; |
450 | 450 |
451 | 451 |
452 class CObjectArray : public CObject { | 452 class CObjectArray : public CObject { |
453 public: | 453 public: |
454 DECLARE_COBJECT_CONSTRUCTORS(Array) | 454 DECLARE_COBJECT_CONSTRUCTORS(Array) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 } | 518 } |
519 | 519 |
520 private: | 520 private: |
521 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 521 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
522 }; | 522 }; |
523 | 523 |
524 } // namespace bin | 524 } // namespace bin |
525 } // namespace dart | 525 } // namespace dart |
526 | 526 |
527 #endif // BIN_DARTUTILS_H_ | 527 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |