Index: mojo/dart/embedder/core/data_pipe_patch.dart |
diff --git a/mojo/dart/embedder/core/data_pipe_patch.dart b/mojo/dart/embedder/core/data_pipe_patch.dart |
index fd34d1f948f5ec7f1a52aa9c11ace583055636de..2285a6055656dd7bb2eb1099d04bc2fddca1e1f6 100644 |
--- a/mojo/dart/embedder/core/data_pipe_patch.dart |
+++ b/mojo/dart/embedder/core/data_pipe_patch.dart |
@@ -2,3 +2,26 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+patch class _MojoDataPipeNatives { |
+ static List MojoCreateDataPipe( |
+ int elementBytes, int capacityBytes, int flags) |
+ native "MojoDataPipe_Create"; |
+ |
+ static List MojoWriteData(int handle, ByteData data, int numBytes, int flags) |
+ native "MojoDataPipe_WriteData"; |
+ |
+ static List MojoBeginWriteData(int handle, int bufferBytes, int flags) |
+ native "MojoDataPipe_BeginWriteData"; |
+ |
+ static int MojoEndWriteData(int handle, int bytesWritten) |
+ native "MojoDataPipe_EndWriteData"; |
+ |
+ static List MojoReadData(int handle, ByteData data, int numBytes, int flags) |
+ native "MojoDataPipe_ReadData"; |
+ |
+ static List MojoBeginReadData(int handle, int bufferBytes, int flags) |
+ native "MojoDataPipe_BeginReadData"; |
+ |
+ static int MojoEndReadData(int handle, int bytesRead) |
+ native "MojoDataPipe_EndReadData"; |
+} |