Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/io/nsIStorageStream.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIStorageStream",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void init (in uint32_t segmentSize, in uint32_t maxSize); */
Method {
name: "Init",
params: &[Param { name: "segmentSize", ty: "u32" }, Param { name: "maxSize", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* nsIOutputStream getOutputStream (in int32_t startPosition); */
Method {
name: "GetOutputStream",
params: &[Param { name: "startPosition", ty: "i32" }, Param { name: "_retval", ty: "*mut*const nsIOutputStream" }],
ret: "::nserror::nsresult",
},
/* nsIInputStream newInputStream (in int32_t startPosition); */
Method {
name: "NewInputStream",
params: &[Param { name: "startPosition", ty: "i32" }, Param { name: "_retval", ty: "*mut*const nsIInputStream" }],
ret: "::nserror::nsresult",
},
/* attribute uint32_t length; */
Method {
name: "GetLength",
params: &[Param { name: "aLength", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetLength",
params: &[Param { name: "aLength", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean writeInProgress; */
Method {
name: "GetWriteInProgress",
params: &[Param { name: "aWriteInProgress", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}