pub struct IStreamWriter { /* private fields */ }Implementations§
Source§impl IStreamWriter
impl IStreamWriter
Sourcepub fn getInterfaceInfo<'a>(
self: &'a IStreamWriter,
) -> impl New<Output = InterfaceInfo> + 'a
pub fn getInterfaceInfo<'a>( self: &'a IStreamWriter, ) -> impl New<Output = InterfaceInfo> + 'a
Return version information associated with this interface. Applications must not override this method.
Sourcepub unsafe fn write(
self: Pin<&mut IStreamWriter>,
data: *const c_void,
nbBytes: i64,
) -> i64
pub unsafe fn write( self: Pin<&mut IStreamWriter>, data: *const c_void, nbBytes: i64, ) -> i64
write nbBytes of data into the stream.
-
dataThe data to be written to stream -
nbBytesThe number of bytes to write -
Returns The number of bytes written. A value that is negative or less than nBytes indicates that an error occurred and TensorRT will give up on writing to the stream.
Trait Implementations§
Source§impl AsRef<IVersionedInterface> for IStreamWriter
impl AsRef<IVersionedInterface> for IStreamWriter
Source§fn as_ref(self: &IStreamWriter) -> &IVersionedInterface
fn as_ref(self: &IStreamWriter) -> &IVersionedInterface
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Drop for IStreamWriter
impl Drop for IStreamWriter
Source§fn drop(self: &mut IStreamWriter)
fn drop(self: &mut IStreamWriter)
TensorRT never calls the destructor for an IStreamWriter defined by the application.
Source§impl ExternType for IStreamWriter
impl ExternType for IStreamWriter
Source§impl MakeCppStorage for IStreamWriter
impl MakeCppStorage for IStreamWriter
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IStreamWriter
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IStreamWriter
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut IStreamWriter)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IStreamWriter)
Frees a C++ allocation which has not yet
had a constructor called. Read more
impl UniquePtrTarget for IStreamWriter
impl WeakPtrTarget for IStreamWriter
Auto Trait Implementations§
impl !Freeze for IStreamWriter
impl RefUnwindSafe for IStreamWriter
impl !Send for IStreamWriter
impl !Sync for IStreamWriter
impl !Unpin for IStreamWriter
impl UnsafeUnpin for IStreamWriter
impl UnwindSafe for IStreamWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more