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§
Sourcefn ctor(
self,
handle: impl Into<IntPtr>,
access: impl Into<FileAccess>,
owns_handle: impl Into<bool>,
buffer_size: impl Into<i32>,
)
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
Sourcefn 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_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
Sourcefn ctor_3(
self,
path: impl Into<Il2CppString>,
mode: impl Into<FileMode>,
access: impl Into<FileAccess>,
)
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
Sourcefn ctor_4(
self,
path: impl Into<Il2CppString>,
mode: impl Into<FileMode>,
access: impl Into<FileAccess>,
share: impl Into<FileShare>,
)
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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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 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
Sourcefn get_can_read(self) -> bool
fn get_can_read(self) -> bool
get_CanRead() overload
Sourcefn get_can_write(self) -> bool
fn get_can_write(self) -> bool
get_CanWrite() overload
Sourcefn get_can_seek(self) -> bool
fn get_can_seek(self) -> bool
get_CanSeek() overload
Sourcefn get_length(self) -> i64
fn get_length(self) -> i64
get_Length() overload
Sourcefn get_position(self) -> i64
fn get_position(self) -> i64
get_Position() overload
Sourcefn set_position(self, value: impl Into<i64>)
fn set_position(self, value: impl Into<i64>)
set_Position(i64) overload
Sourcefn expose_handle(self)
fn expose_handle(self)
ExposeHandle() overload
Sourcefn write_byte(self, value: impl Into<u8>)
fn write_byte(self, value: impl Into<u8>)
WriteByte(u8) overload
Sourcefn read(
self,
array: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32
fn read( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32
Read(::unity::Array<u8>, i32, i32) overload
Sourcefn read_internal(
self,
dest: 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
ReadInternal(::unity::Array<u8>, i32, i32) overload
Sourcefn write(
self,
array: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
)
fn write( self, array: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, )
Write(::unity::Array<u8>, i32, i32) overload
Sourcefn write_internal(
self,
src: 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>, )
WriteInternal(::unity::Array<u8>, i32, i32) overload
Sourcefn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64
fn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64
Seek(i64, crate::system::io::seekorigin::SeekOrigin) overload
Sourcefn set_length(self, value: impl Into<i64>)
fn set_length(self, value: impl Into<i64>)
SetLength(i64) overload
Sourcefn read_segment(
self,
dest: impl Into<Array<u8>>,
dest_offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32
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
Sourcefn write_segment(
self,
src: impl Into<Array<u8>>,
src_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
WriteSegment(::unity::Array<u8>, i32, i32) overload
Sourcefn flush_buffer(self)
fn flush_buffer(self)
FlushBuffer() overload
Sourcefn flush_buffer_if_dirty(self)
fn flush_buffer_if_dirty(self)
FlushBufferIfDirty() overload
Sourcefn refill_buffer(self)
fn refill_buffer(self)
RefillBuffer() overload
Sourcefn init_buffer(self, size: impl Into<i32>, is_zero_size: impl Into<bool>)
fn init_buffer(self, size: impl Into<i32>, is_zero_size: impl Into<bool>)
InitBuffer(i32, bool) overload
Sourcefn get_secure_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString
fn get_secure_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString
GetSecureFileName(::unity::Il2CppString) overload
Sourcefn get_secure_file_name_2(
self,
filename: impl Into<Il2CppString>,
full: impl Into<bool>,
) -> Il2CppString
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§
impl<__T: IFileStream> IFileStreamMethods for __T
system-io-filestream only.