Skip to main content

IFileStreamMethods

Trait IFileStreamMethods 

Source
pub trait IFileStreamMethods: IFileStream {
Show 36 methods // Provided methods fn ctor( self, handle: impl Into<IntPtr>, access: impl Into<FileAccess>, owns_handle: impl Into<bool>, buffer_size: impl Into<i32>, ) { ... } fn ctor_2( self, handle: impl Into<IntPtr>, access: impl Into<FileAccess>, owns_handle: impl Into<bool>, buffer_size: impl Into<i32>, is_async: impl Into<bool>, is_console_wrapper: impl Into<bool>, ) { ... } fn ctor_3( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, ) { ... } fn ctor_4( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, ) { ... } fn ctor_5( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, ) { ... } fn ctor_6( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, use_async: impl Into<bool>, ) { ... } fn ctor_7( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, options: impl Into<FileOptions>, ) { ... } fn ctor_8( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, options: impl Into<FileOptions>, msg_path: impl Into<Il2CppString>, b_from_proxy: impl Into<bool>, use_long_path: impl Into<bool>, check_host: impl Into<bool>, ) { ... } fn ctor_9( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, is_async: impl Into<bool>, anonymous: impl Into<bool>, ) { ... } fn ctor_10( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, anonymous: impl Into<bool>, options: impl Into<FileOptions>, ) { ... } fn get_can_read(self) -> bool { ... } fn get_can_write(self) -> bool { ... } fn get_can_seek(self) -> bool { ... } fn get_length(self) -> i64 { ... } fn get_position(self) -> i64 { ... } fn set_position(self, value: impl Into<i64>) { ... } fn expose_handle(self) { ... } fn read_byte(self) -> i32 { ... } fn write_byte(self, value: impl Into<u8>) { ... } fn read( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32 { ... } fn read_internal( self, dest: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32 { ... } fn write( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) { ... } fn write_internal( self, src: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) { ... } fn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64 { ... } fn set_length(self, value: impl Into<i64>) { ... } fn flush(self) { ... } fn finalize(self) { ... } fn dispose(self, disposing: impl Into<bool>) { ... } fn read_segment( self, dest: impl Into<Array<u8>>, dest_offset: impl Into<i32>, count: impl Into<i32>, ) -> i32 { ... } fn write_segment( self, src: impl Into<Array<u8>>, src_offset: impl Into<i32>, count: impl Into<i32>, ) -> i32 { ... } fn flush_buffer(self) { ... } fn flush_buffer_if_dirty(self) { ... } fn refill_buffer(self) { ... } fn init_buffer(self, size: impl Into<i32>, is_zero_size: impl Into<bool>) { ... } fn get_secure_file_name( self, filename: impl Into<Il2CppString>, ) -> Il2CppString { ... } fn get_secure_file_name_2( self, filename: impl Into<Il2CppString>, full: impl Into<bool>, ) -> Il2CppString { ... }
}

Provided Methods§

Source

fn ctor( self, handle: impl Into<IntPtr>, access: impl Into<FileAccess>, owns_handle: impl Into<bool>, buffer_size: impl Into<i32>, )

.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32) overload

Source

fn ctor_2( self, handle: impl Into<IntPtr>, access: impl Into<FileAccess>, owns_handle: impl Into<bool>, buffer_size: impl Into<i32>, is_async: impl Into<bool>, is_console_wrapper: impl Into<bool>, )

.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32, bool, bool) overload

Source

fn ctor_3( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess) overload

Source

fn ctor_4( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare) overload

Source

fn ctor_5( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32) overload

Source

fn ctor_6( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, use_async: impl Into<bool>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool) overload

Source

fn ctor_7( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, options: impl Into<FileOptions>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions) overload

Source

fn ctor_8( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, options: impl Into<FileOptions>, msg_path: impl Into<Il2CppString>, b_from_proxy: impl Into<bool>, use_long_path: impl Into<bool>, check_host: impl Into<bool>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions, ::unity::Il2CppString, bool, bool, bool) overload

Source

fn ctor_9( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, is_async: impl Into<bool>, anonymous: impl Into<bool>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, bool) overload

Source

fn ctor_10( self, path: impl Into<Il2CppString>, mode: impl Into<FileMode>, access: impl Into<FileAccess>, share: impl Into<FileShare>, buffer_size: impl Into<i32>, anonymous: impl Into<bool>, options: impl Into<FileOptions>, )

.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, crate::system::io::fileoptions::FileOptions) overload

Source

fn get_can_read(self) -> bool

get_CanRead() overload

Source

fn get_can_write(self) -> bool

get_CanWrite() overload

Source

fn get_can_seek(self) -> bool

get_CanSeek() overload

Source

fn get_length(self) -> i64

get_Length() overload

Source

fn get_position(self) -> i64

get_Position() overload

Source

fn set_position(self, value: impl Into<i64>)

set_Position(i64) overload

Source

fn expose_handle(self)

ExposeHandle() overload

Source

fn read_byte(self) -> i32

ReadByte() overload

Source

fn write_byte(self, value: impl Into<u8>)

WriteByte(u8) overload

Source

fn read( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32

Read(::unity::Array<u8>, i32, i32) overload

Source

fn read_internal( self, dest: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32

ReadInternal(::unity::Array<u8>, i32, i32) overload

Source

fn write( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, )

Write(::unity::Array<u8>, i32, i32) overload

Source

fn write_internal( self, src: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, )

WriteInternal(::unity::Array<u8>, i32, i32) overload

Source

fn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64

Seek(i64, crate::system::io::seekorigin::SeekOrigin) overload

Source

fn set_length(self, value: impl Into<i64>)

SetLength(i64) overload

Source

fn flush(self)

Flush() overload

Source

fn finalize(self)

Finalize() overload

Source

fn dispose(self, disposing: impl Into<bool>)

Dispose(bool) overload

Source

fn read_segment( self, dest: impl Into<Array<u8>>, dest_offset: impl Into<i32>, count: impl Into<i32>, ) -> i32

ReadSegment(::unity::Array<u8>, i32, i32) overload

Source

fn write_segment( self, src: impl Into<Array<u8>>, src_offset: impl Into<i32>, count: impl Into<i32>, ) -> i32

WriteSegment(::unity::Array<u8>, i32, i32) overload

Source

fn flush_buffer(self)

FlushBuffer() overload

Source

fn flush_buffer_if_dirty(self)

FlushBufferIfDirty() overload

Source

fn refill_buffer(self)

RefillBuffer() overload

Source

fn init_buffer(self, size: impl Into<i32>, is_zero_size: impl Into<bool>)

InitBuffer(i32, bool) overload

Source

fn get_secure_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString

GetSecureFileName(::unity::Il2CppString) overload

Source

fn get_secure_file_name_2( self, filename: impl Into<Il2CppString>, full: impl Into<bool>, ) -> Il2CppString

GetSecureFileName(::unity::Il2CppString, bool) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IFileStream> IFileStreamMethods for __T

Available on crate feature system-io-filestream only.