Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIRandomGenerator.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIRandomGenerator",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void generateRandomBytes (in unsigned long aLength, [array, size_is (aLength), retval] out octet aBuffer); */
Method {
name: "GenerateRandomBytes",
params: &[Param { name: "aLength", ty: "u32" }, Param { name: "aBuffer", ty: "*mut *mut u8" }],
ret: "::nserror::nsresult",
},
/* void generateRandomBytesInto ([array, size_is (aLength)] in octet aBuffer, in unsigned long aLength); */
Method {
name: "GenerateRandomBytesInto",
params: &[Param { name: "aBuffer", ty: "*mut u8" }, Param { name: "aLength", ty: "u32" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}