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_IO_BUFFER_H_ | 5 #ifndef BIN_IO_BUFFER_H_ |
6 #define BIN_IO_BUFFER_H_ | 6 #define BIN_IO_BUFFER_H_ |
7 | 7 |
| 8 #include "include/dart_api.h" |
8 #include "platform/globals.h" | 9 #include "platform/globals.h" |
9 | 10 |
10 #include "include/dart_api.h" | |
11 | |
12 | |
13 namespace dart { | 11 namespace dart { |
14 namespace bin { | 12 namespace bin { |
15 | 13 |
16 class IOBuffer { | 14 class IOBuffer { |
17 public: | 15 public: |
18 // Allocate an IO buffer dart object (of type Uint8List) backed by | 16 // Allocate an IO buffer dart object (of type Uint8List) backed by |
19 // an external byte array. | 17 // an external byte array. |
20 static Dart_Handle Allocate(intptr_t size, uint8_t **buffer); | 18 static Dart_Handle Allocate(intptr_t size, uint8_t **buffer); |
21 | 19 |
22 // Allocate IO buffer storage. | 20 // Allocate IO buffer storage. |
(...skipping 14 matching lines...) Expand all Loading... |
37 | 35 |
38 private: | 36 private: |
39 DISALLOW_ALLOCATION(); | 37 DISALLOW_ALLOCATION(); |
40 DISALLOW_IMPLICIT_CONSTRUCTORS(IOBuffer); | 38 DISALLOW_IMPLICIT_CONSTRUCTORS(IOBuffer); |
41 }; | 39 }; |
42 | 40 |
43 } // namespace bin | 41 } // namespace bin |
44 } // namespace dart | 42 } // namespace dart |
45 | 43 |
46 #endif // BIN_IO_BUFFER_H_ | 44 #endif // BIN_IO_BUFFER_H_ |
OLD | NEW |