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

Unified Diff: runtime/bin/io_buffer.h

Issue 21816002: Add Process.runSync for running processe synchronously. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Mac OS issue Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/io_buffer.cc » ('j') | runtime/bin/io_buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_buffer.h
diff --git a/runtime/bin/io_buffer.h b/runtime/bin/io_buffer.h
index 1dfcc00252b594ab00691eb4bcc1ea9bf4c8725c..79d55643b06f3fc16e82576d6eec1303024eaca5 100644
--- a/runtime/bin/io_buffer.h
+++ b/runtime/bin/io_buffer.h
@@ -19,6 +19,11 @@ class IOBuffer {
// an external byte array.
static Dart_Handle Allocate(intptr_t size, uint8_t **buffer);
+ // Create an IO buffer backed by an external byte array. The buffer must
+ // have been allocated using the new operator and it will be freed using
+ // delete.
+ static Dart_Handle Create(uint8_t *buffer, intptr_t size);
+
// Allocate IO buffer storage.
static uint8_t* Allocate(intptr_t size);
« no previous file with comments | « no previous file | runtime/bin/io_buffer.cc » ('j') | runtime/bin/io_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698