Struct xpcom::interfaces::nsIObjectInputStream
[−]
[src]
#[repr(C)]pub struct nsIObjectInputStream { /* fields omitted */ }
interface nsIObjectInputStream : nsIBinaryInputStream
/**
* @see nsIObjectOutputStream
* @see nsIBinaryInputStream
*/
Methods
impl nsIObjectInputStream
[src]
pub fn coerce<T: nsIObjectInputStreamCoerce>(&self) -> &T
[src]
Cast this nsIObjectInputStream
to one of its base interfaces.
impl nsIObjectInputStream
[src]
pub unsafe fn ReadObject(
&self,
aIsStrongRef: bool,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aIsStrongRef: bool,
_retval: *mut *const nsISupports
) -> nsresult
/**
* Read an object from this stream to satisfy a strong or weak reference
* to one of its interfaces. If the interface was not along the primary
* inheritance chain ending in the "root" or XPCOM-identity nsISupports,
* readObject will QueryInterface from the deserialized object root to the
* correct interface, which was specified when the object was serialized.
*
* @see nsIObjectOutputStream
*/
nsISupports readObject (in boolean aIsStrongRef);
pub unsafe fn ReadID(&self, aID: *mut nsID) -> nsresult
[src]
[notxpcom] nsresult readID (out nsID aID);
pub unsafe fn GetBuffer(
&self,
aLength: uint32_t,
aAlignMask: uint32_t
) -> *mut u8
[src]
&self,
aLength: uint32_t,
aAlignMask: uint32_t
) -> *mut u8
/**
* Optimized deserialization support -- see nsIStreamBufferAccess.idl.
*/
[notxpcom] charPtr getBuffer (in uint32_t aLength, in uint32_t aAlignMask);
pub unsafe fn PutBuffer(&self, aBuffer: *mut u8, aLength: uint32_t) -> c_void
[src]
[notxpcom] void putBuffer (in charPtr aBuffer, in uint32_t aLength);
Methods from Deref<Target = nsIBinaryInputStream>
pub fn coerce<T: nsIBinaryInputStreamCoerce>(&self) -> &T
[src]
Cast this nsIBinaryInputStream
to one of its base interfaces.
pub unsafe fn SetInputStream(
&self,
aInputStream: *const nsIInputStream
) -> nsresult
[src]
&self,
aInputStream: *const nsIInputStream
) -> nsresult
void setInputStream (in nsIInputStream aInputStream);
pub unsafe fn ReadBoolean(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Read 8-bits from the stream.
*
* @return that byte to be treated as a boolean.
*/
boolean readBoolean ();
pub unsafe fn Read8(&self, _retval: *mut uint8_t) -> nsresult
[src]
uint8_t read8 ();
pub unsafe fn Read16(&self, _retval: *mut uint16_t) -> nsresult
[src]
uint16_t read16 ();
pub unsafe fn Read32(&self, _retval: *mut uint32_t) -> nsresult
[src]
uint32_t read32 ();
pub unsafe fn Read64(&self, _retval: *mut uint64_t) -> nsresult
[src]
uint64_t read64 ();
pub unsafe fn ReadFloat(&self, _retval: *mut c_float) -> nsresult
[src]
float readFloat ();
pub unsafe fn ReadDouble(&self, _retval: *mut c_double) -> nsresult
[src]
double readDouble ();
pub unsafe fn ReadCString(&self, _retval: &mut nsACString) -> nsresult
[src]
/**
* Read an 8-bit pascal style string from the stream.
* 32-bit length field, followed by length 8-bit chars.
*/
ACString readCString ();
pub unsafe fn ReadString(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Read an 16-bit pascal style string from the stream.
* 32-bit length field, followed by length PRUnichars.
*/
AString readString ();
pub unsafe fn ReadBytes(
&self,
aLength: uint32_t,
aString: *mut *const c_char
) -> nsresult
[src]
&self,
aLength: uint32_t,
aString: *mut *const c_char
) -> nsresult
/**
* Read an opaque byte array from the stream.
*
* @param aLength the number of bytes that must be read.
*
* @throws NS_ERROR_FAILURE if it can't read aLength bytes
*/
void readBytes (in uint32_t aLength, [size_is (aLength), retval] out string aString);
pub unsafe fn ReadByteArray(
&self,
aLength: uint32_t,
aBytes: *mut *mut uint8_t
) -> nsresult
[src]
&self,
aLength: uint32_t,
aBytes: *mut *mut uint8_t
) -> nsresult
/**
* Read an opaque byte array from the stream, storing the results
* as an array of PRUint8s.
*
* @param aLength the number of bytes that must be read.
*
* @throws NS_ERROR_FAILURE if it can't read aLength bytes
*/
void readByteArray (in uint32_t aLength, [array, size_is (aLength), retval] out uint8_t aBytes);
Trait Implementations
impl XpCom for nsIObjectInputStream
[src]
const IID: nsIID
IID: nsIID = nsID(1814332934, 20142, 18170, [157, 240, 186, 88, 80, 35, 104, 235])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIObjectInputStream
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIObjectInputStream
[src]
type Target = nsIBinaryInputStream
The resulting type after dereferencing.
fn deref(&self) -> &nsIBinaryInputStream
[src]
Dereferences the value.