OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 patch class _MojoDataPipeNatives { |
| 6 static List MojoCreateDataPipe( |
| 7 int elementBytes, int capacityBytes, int flags) |
| 8 native "MojoDataPipe_Create"; |
| 9 |
| 10 static List MojoWriteData(int handle, ByteData data, int numBytes, int flags) |
| 11 native "MojoDataPipe_WriteData"; |
| 12 |
| 13 static List MojoBeginWriteData(int handle, int bufferBytes, int flags) |
| 14 native "MojoDataPipe_BeginWriteData"; |
| 15 |
| 16 static int MojoEndWriteData(int handle, int bytesWritten) |
| 17 native "MojoDataPipe_EndWriteData"; |
| 18 |
| 19 static List MojoReadData(int handle, ByteData data, int numBytes, int flags) |
| 20 native "MojoDataPipe_ReadData"; |
| 21 |
| 22 static List MojoBeginReadData(int handle, int bufferBytes, int flags) |
| 23 native "MojoDataPipe_BeginReadData"; |
| 24 |
| 25 static int MojoEndReadData(int handle, int bytesRead) |
| 26 native "MojoDataPipe_EndReadData"; |
| 27 } |
OLD | NEW |