pub trait IMemoryStreamMethods: IMemoryStream {
Show 30 methods
// Provided methods
fn ctor(self) { ... }
fn ctor_2(self, capacity: impl Into<i32>) { ... }
fn ctor_3(self, buffer: impl Into<Array<u8>>) { ... }
fn ctor_4(self, buffer: impl Into<Array<u8>>, writable: impl Into<bool>) { ... }
fn ctor_5(
self,
buffer: impl Into<Array<u8>>,
index: impl Into<i32>,
count: impl Into<i32>,
) { ... }
fn ctor_6(
self,
buffer: impl Into<Array<u8>>,
index: impl Into<i32>,
count: impl Into<i32>,
writable: impl Into<bool>,
publicly_visible: impl Into<bool>,
) { ... }
fn get_can_read(self) -> bool { ... }
fn get_can_seek(self) -> bool { ... }
fn get_can_write(self) -> bool { ... }
fn ensure_writeable(self) { ... }
fn dispose(self, disposing: impl Into<bool>) { ... }
fn ensure_capacity(self, value: impl Into<i32>) -> bool { ... }
fn flush(self) { ... }
fn get_buffer(self) -> Array<u8> { ... }
fn internal_get_buffer(self) -> Array<u8> { ... }
fn internal_get_position(self) -> i32 { ... }
fn internal_read_int32(self) -> i32 { ... }
fn internal_emulate_read(self, count: impl Into<i32>) -> i32 { ... }
fn get_capacity(self) -> i32 { ... }
fn set_capacity(self, value: impl Into<i32>) { ... }
fn get_length(self) -> i64 { ... }
fn get_position(self) -> i64 { ... }
fn set_position(self, value: impl Into<i64>) { ... }
fn read(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32 { ... }
fn read_byte(self) -> i32 { ... }
fn seek(self, offset: impl Into<i64>, loc: impl Into<SeekOrigin>) -> i64 { ... }
fn set_length(self, value: impl Into<i64>) { ... }
fn to_array(self) -> Array<u8> { ... }
fn write(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) { ... }
fn write_byte(self, value: impl Into<u8>) { ... }
}Provided Methods§
Sourcefn ctor_4(self, buffer: impl Into<Array<u8>>, writable: impl Into<bool>)
fn ctor_4(self, buffer: impl Into<Array<u8>>, writable: impl Into<bool>)
.ctor(::unity::Array<u8>, bool) overload
Sourcefn ctor_5(
self,
buffer: impl Into<Array<u8>>,
index: impl Into<i32>,
count: impl Into<i32>,
)
fn ctor_5( self, buffer: impl Into<Array<u8>>, index: impl Into<i32>, count: impl Into<i32>, )
.ctor(::unity::Array<u8>, i32, i32) overload
Sourcefn ctor_6(
self,
buffer: impl Into<Array<u8>>,
index: impl Into<i32>,
count: impl Into<i32>,
writable: impl Into<bool>,
publicly_visible: impl Into<bool>,
)
fn ctor_6( self, buffer: impl Into<Array<u8>>, index: impl Into<i32>, count: impl Into<i32>, writable: impl Into<bool>, publicly_visible: impl Into<bool>, )
.ctor(::unity::Array<u8>, i32, i32, bool, bool) overload
Sourcefn get_can_read(self) -> bool
fn get_can_read(self) -> bool
get_CanRead() overload
Sourcefn get_can_seek(self) -> bool
fn get_can_seek(self) -> bool
get_CanSeek() overload
Sourcefn get_can_write(self) -> bool
fn get_can_write(self) -> bool
get_CanWrite() overload
Sourcefn ensure_writeable(self)
fn ensure_writeable(self)
EnsureWriteable() overload
Sourcefn ensure_capacity(self, value: impl Into<i32>) -> bool
fn ensure_capacity(self, value: impl Into<i32>) -> bool
EnsureCapacity(i32) overload
Sourcefn get_buffer(self) -> Array<u8>
fn get_buffer(self) -> Array<u8>
GetBuffer() overload
Sourcefn internal_get_buffer(self) -> Array<u8>
fn internal_get_buffer(self) -> Array<u8>
InternalGetBuffer() overload
Sourcefn internal_get_position(self) -> i32
fn internal_get_position(self) -> i32
InternalGetPosition() overload
Sourcefn internal_read_int32(self) -> i32
fn internal_read_int32(self) -> i32
InternalReadInt32() overload
Sourcefn internal_emulate_read(self, count: impl Into<i32>) -> i32
fn internal_emulate_read(self, count: impl Into<i32>) -> i32
InternalEmulateRead(i32) overload
Sourcefn get_capacity(self) -> i32
fn get_capacity(self) -> i32
get_Capacity() overload
Sourcefn set_capacity(self, value: impl Into<i32>)
fn set_capacity(self, value: impl Into<i32>)
set_Capacity(i32) 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 read(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32
fn read( self, buffer: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32
Read(::unity::Array<u8>, i32, i32) overload
Sourcefn seek(self, offset: impl Into<i64>, loc: impl Into<SeekOrigin>) -> i64
fn seek(self, offset: impl Into<i64>, loc: 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 write(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
)
fn write( self, buffer: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, )
Write(::unity::Array<u8>, i32, i32) overload
Sourcefn write_byte(self, value: impl Into<u8>)
fn write_byte(self, value: impl Into<u8>)
WriteByte(u8) 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: IMemoryStream> IMemoryStreamMethods for __T
system-io-memorystream only.