1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
//
// DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheVisitor.idl
//


/// `interface nsICacheVisitor : nsISupports`
///


// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.

#[repr(C)]
pub struct nsICacheVisitor {
    vtable: *const nsICacheVisitorVTable,

    /// This field is a phantomdata to ensure that the VTable type and any
    /// struct containing it is not safe to send across threads, as XPCOM is
    /// generally not threadsafe.
    ///
    /// XPCOM interfaces in general are not safe to send across threads.
    __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
}

// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsICacheVisitor.
unsafe impl XpCom for nsICacheVisitor {
    const IID: nsIID = nsID(0xf8c08c4b, 0xd778, 0x49d1,
        [0xa5, 0x9b, 0x86, 0x6f, 0xdc, 0x50, 0x0d, 0x95]);
}

// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsICacheVisitor {
    #[inline]
    unsafe fn addref(&self) {
        self.AddRef();
    }
    #[inline]
    unsafe fn release(&self) {
        self.Release();
    }
}

// This trait is implemented on all types which can be coerced to from nsICacheVisitor.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsICacheVisitorCoerce {
    /// Cheaply cast a value of this type from a `nsICacheVisitor`.
    fn coerce_from(v: &nsICacheVisitor) -> &Self;
}

// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsICacheVisitorCoerce for nsICacheVisitor {
    #[inline]
    fn coerce_from(v: &nsICacheVisitor) -> &Self {
        v
    }
}

impl nsICacheVisitor {
    /// Cast this `nsICacheVisitor` to one of its base interfaces.
    #[inline]
    pub fn coerce<T: nsICacheVisitorCoerce>(&self) -> &T {
        T::coerce_from(self)
    }
}

// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsICacheVisitor {
    type Target = nsISupports;
    #[inline]
    fn deref(&self) -> &nsISupports {
        unsafe {
            ::std::mem::transmute(self)
        }
    }
}

// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsICacheVisitorCoerce for T {
    #[inline]
    fn coerce_from(v: &nsICacheVisitor) -> &Self {
        T::coerce_from(v)
    }
}

// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsICacheVisitor
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsICacheVisitorVTable {
    /// We need to include the members from the base interface's vtable at the start
    /// of the VTable definition.
    pub __base: nsISupportsVTable,

    /* boolean visitDevice (in string deviceID, in nsICacheDeviceInfo deviceInfo); */
    pub VisitDevice: unsafe extern "system" fn (this: *const nsICacheVisitor, deviceID: *const libc::c_char, deviceInfo: *const nsICacheDeviceInfo, _retval: *mut bool) -> nsresult,

    /* boolean visitEntry (in string deviceID, in nsICacheEntryInfo entryInfo); */
    pub VisitEntry: unsafe extern "system" fn (this: *const nsICacheVisitor, deviceID: *const libc::c_char, entryInfo: *const nsICacheEntryInfo, _retval: *mut bool) -> nsresult,
}


// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsICacheVisitor {

    /// ```text
    /// /**
    ///      * Called to provide information about a cache device.
    ///      *
    ///      * @param deviceID - specifies the device being visited.
    ///      * @param deviceInfo - specifies information about this device.
    ///      *
    ///      * @return true to start visiting all entries for this device.
    ///      * @return false to advance to the next device.
    ///      */
    /// ```
    ///

    /// `boolean visitDevice (in string deviceID, in nsICacheDeviceInfo deviceInfo);`
    #[inline]
    pub unsafe fn VisitDevice(&self, deviceID: *const libc::c_char, deviceInfo: *const nsICacheDeviceInfo, _retval: *mut bool) -> nsresult {
        ((*self.vtable).VisitDevice)(self, deviceID, deviceInfo, _retval)
    }


    /// ```text
    /// /**
    ///      * Called to provide information about a cache entry.
    ///      *
    ///      * @param deviceID - specifies the device being visited.
    ///      * @param entryInfo - specifies information about this entry.
    ///      *
    ///      * @return true to visit the next entry on the current device, or if the
    ///      *   end of the device has been reached, advance to the next device.
    ///      * @return false to advance to the next device.
    ///      */
    /// ```
    ///

    /// `boolean visitEntry (in string deviceID, in nsICacheEntryInfo entryInfo);`
    #[inline]
    pub unsafe fn VisitEntry(&self, deviceID: *const libc::c_char, entryInfo: *const nsICacheEntryInfo, _retval: *mut bool) -> nsresult {
        ((*self.vtable).VisitEntry)(self, deviceID, entryInfo, _retval)
    }


}


/// `interface nsICacheDeviceInfo : nsISupports`
///


// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.

#[repr(C)]
pub struct nsICacheDeviceInfo {
    vtable: *const nsICacheDeviceInfoVTable,

    /// This field is a phantomdata to ensure that the VTable type and any
    /// struct containing it is not safe to send across threads, as XPCOM is
    /// generally not threadsafe.
    ///
    /// XPCOM interfaces in general are not safe to send across threads.
    __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
}

// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsICacheDeviceInfo.
unsafe impl XpCom for nsICacheDeviceInfo {
    const IID: nsIID = nsID(0x31d1c294, 0x1dd2, 0x11b2,
        [0xbe, 0x3a, 0xc7, 0x92, 0x30, 0xdc, 0xa2, 0x97]);
}

// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsICacheDeviceInfo {
    #[inline]
    unsafe fn addref(&self) {
        self.AddRef();
    }
    #[inline]
    unsafe fn release(&self) {
        self.Release();
    }
}

// This trait is implemented on all types which can be coerced to from nsICacheDeviceInfo.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsICacheDeviceInfoCoerce {
    /// Cheaply cast a value of this type from a `nsICacheDeviceInfo`.
    fn coerce_from(v: &nsICacheDeviceInfo) -> &Self;
}

// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsICacheDeviceInfoCoerce for nsICacheDeviceInfo {
    #[inline]
    fn coerce_from(v: &nsICacheDeviceInfo) -> &Self {
        v
    }
}

impl nsICacheDeviceInfo {
    /// Cast this `nsICacheDeviceInfo` to one of its base interfaces.
    #[inline]
    pub fn coerce<T: nsICacheDeviceInfoCoerce>(&self) -> &T {
        T::coerce_from(self)
    }
}

// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsICacheDeviceInfo {
    type Target = nsISupports;
    #[inline]
    fn deref(&self) -> &nsISupports {
        unsafe {
            ::std::mem::transmute(self)
        }
    }
}

// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsICacheDeviceInfoCoerce for T {
    #[inline]
    fn coerce_from(v: &nsICacheDeviceInfo) -> &Self {
        T::coerce_from(v)
    }
}

// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsICacheDeviceInfo
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsICacheDeviceInfoVTable {
    /// We need to include the members from the base interface's vtable at the start
    /// of the VTable definition.
    pub __base: nsISupportsVTable,

    /* readonly attribute ACString description; */
    pub GetDescription: unsafe extern "system" fn (this: *const nsICacheDeviceInfo, aDescription: &mut ::nsstring::nsACString) -> nsresult,

    /* readonly attribute ACString usageReport; */
    pub GetUsageReport: unsafe extern "system" fn (this: *const nsICacheDeviceInfo, aUsageReport: &mut ::nsstring::nsACString) -> nsresult,

    /* readonly attribute unsigned long entryCount; */
    pub GetEntryCount: unsafe extern "system" fn (this: *const nsICacheDeviceInfo, aEntryCount: *mut libc::uint32_t) -> nsresult,

    /* readonly attribute unsigned long totalSize; */
    pub GetTotalSize: unsafe extern "system" fn (this: *const nsICacheDeviceInfo, aTotalSize: *mut libc::uint32_t) -> nsresult,

    /* readonly attribute unsigned long maximumSize; */
    pub GetMaximumSize: unsafe extern "system" fn (this: *const nsICacheDeviceInfo, aMaximumSize: *mut libc::uint32_t) -> nsresult,
}


// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsICacheDeviceInfo {

    /// ```text
    /// /**
    ///      * Get a human readable description of the cache device.
    ///      */
    /// ```
    ///

    /// `readonly attribute ACString description;`
    #[inline]
    pub unsafe fn GetDescription(&self, aDescription: &mut ::nsstring::nsACString) -> nsresult {
        ((*self.vtable).GetDescription)(self, aDescription)
    }


    /// ```text
    /// /**
    ///      * Get a usage report, statistics, miscellaneous data about
    ///      * the cache device.
    ///      */
    /// ```
    ///

    /// `readonly attribute ACString usageReport;`
    #[inline]
    pub unsafe fn GetUsageReport(&self, aUsageReport: &mut ::nsstring::nsACString) -> nsresult {
        ((*self.vtable).GetUsageReport)(self, aUsageReport)
    }


    /// ```text
    /// /**
    ///      * Get the number of stored cache entries.
    ///      */
    /// ```
    ///

    /// `readonly attribute unsigned long entryCount;`
    #[inline]
    pub unsafe fn GetEntryCount(&self, aEntryCount: *mut libc::uint32_t) -> nsresult {
        ((*self.vtable).GetEntryCount)(self, aEntryCount)
    }


    /// ```text
    /// /**
    ///      * Get the total size of the stored cache entries.
    ///      */
    /// ```
    ///

    /// `readonly attribute unsigned long totalSize;`
    #[inline]
    pub unsafe fn GetTotalSize(&self, aTotalSize: *mut libc::uint32_t) -> nsresult {
        ((*self.vtable).GetTotalSize)(self, aTotalSize)
    }


    /// ```text
    /// /**
    ///      * Get the upper limit of the size of the data the cache can store.
    ///      */
    /// ```
    ///

    /// `readonly attribute unsigned long maximumSize;`
    #[inline]
    pub unsafe fn GetMaximumSize(&self, aMaximumSize: *mut libc::uint32_t) -> nsresult {
        ((*self.vtable).GetMaximumSize)(self, aMaximumSize)
    }


}


/// `interface nsICacheEntryInfo : nsISupports`
///


// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.

#[repr(C)]
pub struct nsICacheEntryInfo {
    vtable: *const nsICacheEntryInfoVTable,

    /// This field is a phantomdata to ensure that the VTable type and any
    /// struct containing it is not safe to send across threads, as XPCOM is
    /// generally not threadsafe.
    ///
    /// XPCOM interfaces in general are not safe to send across threads.
    __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
}

// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsICacheEntryInfo.
unsafe impl XpCom for nsICacheEntryInfo {
    const IID: nsIID = nsID(0xfab51c92, 0x95c3, 0x4468,
        [0xb3, 0x17, 0x7d, 0xe4, 0xd7, 0x58, 0x82, 0x54]);
}

// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsICacheEntryInfo {
    #[inline]
    unsafe fn addref(&self) {
        self.AddRef();
    }
    #[inline]
    unsafe fn release(&self) {
        self.Release();
    }
}

// This trait is implemented on all types which can be coerced to from nsICacheEntryInfo.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsICacheEntryInfoCoerce {
    /// Cheaply cast a value of this type from a `nsICacheEntryInfo`.
    fn coerce_from(v: &nsICacheEntryInfo) -> &Self;
}

// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsICacheEntryInfoCoerce for nsICacheEntryInfo {
    #[inline]
    fn coerce_from(v: &nsICacheEntryInfo) -> &Self {
        v
    }
}

impl nsICacheEntryInfo {
    /// Cast this `nsICacheEntryInfo` to one of its base interfaces.
    #[inline]
    pub fn coerce<T: nsICacheEntryInfoCoerce>(&self) -> &T {
        T::coerce_from(self)
    }
}

// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsICacheEntryInfo {
    type Target = nsISupports;
    #[inline]
    fn deref(&self) -> &nsISupports {
        unsafe {
            ::std::mem::transmute(self)
        }
    }
}

// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsICacheEntryInfoCoerce for T {
    #[inline]
    fn coerce_from(v: &nsICacheEntryInfo) -> &Self {
        T::coerce_from(v)
    }
}

// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsICacheEntryInfo
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsICacheEntryInfoVTable {
    /// We need to include the members from the base interface's vtable at the start
    /// of the VTable definition.
    pub __base: nsISupportsVTable,

    /* readonly attribute ACString clientID; */
    pub GetClientID: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aClientID: &mut ::nsstring::nsACString) -> nsresult,

    /* readonly attribute ACString deviceID; */
    pub GetDeviceID: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aDeviceID: &mut ::nsstring::nsACString) -> nsresult,

    /* readonly attribute ACString key; */
    pub GetKey: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aKey: &mut ::nsstring::nsACString) -> nsresult,

    /* readonly attribute long fetchCount; */
    pub GetFetchCount: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aFetchCount: *mut libc::int32_t) -> nsresult,

    /* readonly attribute uint32_t lastFetched; */
    pub GetLastFetched: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aLastFetched: *mut uint32_t) -> nsresult,

    /* readonly attribute uint32_t lastModified; */
    pub GetLastModified: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aLastModified: *mut uint32_t) -> nsresult,

    /* readonly attribute uint32_t expirationTime; */
    pub GetExpirationTime: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aExpirationTime: *mut uint32_t) -> nsresult,

    /* readonly attribute unsigned long dataSize; */
    pub GetDataSize: unsafe extern "system" fn (this: *const nsICacheEntryInfo, aDataSize: *mut libc::uint32_t) -> nsresult,

    /* boolean isStreamBased (); */
    pub IsStreamBased: unsafe extern "system" fn (this: *const nsICacheEntryInfo, _retval: *mut bool) -> nsresult,
}


// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsICacheEntryInfo {

    /// ```text
    /// /**
    ///      * Get the client id associated with this cache entry.
    ///      */
    /// ```
    ///

    /// `readonly attribute ACString clientID;`
    #[inline]
    pub unsafe fn GetClientID(&self, aClientID: &mut ::nsstring::nsACString) -> nsresult {
        ((*self.vtable).GetClientID)(self, aClientID)
    }


    /// ```text
    /// /**
    ///      * Get the id for the device that stores this cache entry.
    ///      */
    /// ```
    ///

    /// `readonly attribute ACString deviceID;`
    #[inline]
    pub unsafe fn GetDeviceID(&self, aDeviceID: &mut ::nsstring::nsACString) -> nsresult {
        ((*self.vtable).GetDeviceID)(self, aDeviceID)
    }


    /// ```text
    /// /**
    ///      * Get the key identifying the cache entry.
    ///      */
    /// ```
    ///

    /// `readonly attribute ACString key;`
    #[inline]
    pub unsafe fn GetKey(&self, aKey: &mut ::nsstring::nsACString) -> nsresult {
        ((*self.vtable).GetKey)(self, aKey)
    }


    /// ```text
    /// /**
    ///      * Get the number of times the cache entry has been opened.
    ///      */
    /// ```
    ///

    /// `readonly attribute long fetchCount;`
    #[inline]
    pub unsafe fn GetFetchCount(&self, aFetchCount: *mut libc::int32_t) -> nsresult {
        ((*self.vtable).GetFetchCount)(self, aFetchCount)
    }


    /// ```text
    /// /**
    ///      * Get the last time the cache entry was opened (in seconds since the Epoch).
    ///      */
    /// ```
    ///

    /// `readonly attribute uint32_t lastFetched;`
    #[inline]
    pub unsafe fn GetLastFetched(&self, aLastFetched: *mut uint32_t) -> nsresult {
        ((*self.vtable).GetLastFetched)(self, aLastFetched)
    }


    /// ```text
    /// /**
    ///      * Get the last time the cache entry was modified (in seconds since the Epoch).
    ///      */
    /// ```
    ///

    /// `readonly attribute uint32_t lastModified;`
    #[inline]
    pub unsafe fn GetLastModified(&self, aLastModified: *mut uint32_t) -> nsresult {
        ((*self.vtable).GetLastModified)(self, aLastModified)
    }


    /// ```text
    /// /**
    ///      * Get the expiration time of the cache entry (in seconds since the Epoch).
    ///      */
    /// ```
    ///

    /// `readonly attribute uint32_t expirationTime;`
    #[inline]
    pub unsafe fn GetExpirationTime(&self, aExpirationTime: *mut uint32_t) -> nsresult {
        ((*self.vtable).GetExpirationTime)(self, aExpirationTime)
    }


    /// ```text
    /// /**
    ///      * Get the cache entry data size.
    ///      */
    /// ```
    ///

    /// `readonly attribute unsigned long dataSize;`
    #[inline]
    pub unsafe fn GetDataSize(&self, aDataSize: *mut libc::uint32_t) -> nsresult {
        ((*self.vtable).GetDataSize)(self, aDataSize)
    }


    /// ```text
    /// /**
    ///      * Find out whether or not the cache entry is stream based.
    ///      */
    /// ```
    ///

    /// `boolean isStreamBased ();`
    #[inline]
    pub unsafe fn IsStreamBased(&self, _retval: *mut bool) -> nsresult {
        ((*self.vtable).IsStreamBased)(self, _retval)
    }


}