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

Unified Diff: mojo/public/platform/native_cgo/system_cgo.go

Issue 1374463002: Remove support for "all or none" two-phase data pipe read/write. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « mojo/public/go/system/system.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native_cgo/system_cgo.go
diff --git a/mojo/public/platform/native_cgo/system_cgo.go b/mojo/public/platform/native_cgo/system_cgo.go
index 48594ba90872f8b573e55228730f1f588b5ad009..eda1dc0ae987066e06e5933ca46ed7ea15943250 100644
--- a/mojo/public/platform/native_cgo/system_cgo.go
+++ b/mojo/public/platform/native_cgo/system_cgo.go
@@ -122,9 +122,9 @@ func (c *CGoSystem) WriteData(producerHandle uint32, buf []byte, flags uint32) (
return uint32(r), uint32(numBytes)
}
-func (c *CGoSystem) BeginWriteData(producerHandle uint32, numBytes uint32, flags uint32) (result uint32, buf []byte) {
+func (c *CGoSystem) BeginWriteData(producerHandle uint32, flags uint32) (result uint32, buf []byte) {
var buffer unsafe.Pointer
- bufferNumBytes := C.uint32_t(numBytes)
+ var bufferNumBytes C.uint32_t
r := C.MojoBeginWriteData(C.MojoHandle(producerHandle), &buffer, &bufferNumBytes, C.MojoWriteDataFlags(flags))
if r != C.MOJO_RESULT_OK {
return uint32(r), nil
@@ -147,9 +147,9 @@ func (c *CGoSystem) ReadData(consumerHandle uint32, flags uint32) (result uint32
return uint32(r), buf
}
-func (c *CGoSystem) BeginReadData(consumerHandle uint32, numBytes uint32, flags uint32) (result uint32, buf []byte) {
+func (c *CGoSystem) BeginReadData(consumerHandle uint32, flags uint32) (result uint32, buf []byte) {
var buffer unsafe.Pointer
- bufferNumBytes := C.uint32_t(numBytes)
+ var bufferNumBytes C.uint32_t
rogulenko 2015/09/25 23:23:05 indent with tabs
r := C.MojoBeginReadData(C.MojoHandle(consumerHandle), &buffer, &bufferNumBytes, C.MojoReadDataFlags(flags))
if r != C.MOJO_RESULT_OK {
return uint32(r), nil
« no previous file with comments | « mojo/public/go/system/system.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698