Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/io/nsIStreamBufferAccess.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIStreamBufferAccess",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [noscript,notxpcom] charPtr getBuffer (in uint32_t aLength, in uint32_t aAlignMask); */
Method {
name: "GetBuffer",
params: &[Param { name: "aLength", ty: "u32" }, Param { name: "aAlignMask", ty: "u32" }],
ret: "*mut libc::c_char",
},
/* [noscript,notxpcom] void putBuffer (in charPtr aBuffer, in uint32_t aLength); */
Method {
name: "PutBuffer",
params: &[Param { name: "aBuffer", ty: "*mut libc::c_char" }, Param { name: "aLength", ty: "u32" }],
ret: "libc::c_void",
},
/* void disableBuffering (); */
Method {
name: "DisableBuffering",
params: &[],
ret: "::nserror::nsresult",
},
/* void enableBuffering (); */
Method {
name: "EnableBuffering",
params: &[],
ret: "::nserror::nsresult",
},
/* readonly attribute nsISupports unbufferedStream; */
Method {
name: "GetUnbufferedStream",
params: &[Param { name: "aUnbufferedStream", ty: "*mut *const nsISupports" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}