pub trait IStream_2Methods: IStream_2 {
Show 102 methods
// Provided methods
fn get_m_buffer(self) -> Array<u8> { ... }
fn set_m_buffer(self, value: impl Into<Array<u8>>) { ... }
fn get_m_position(self) -> i32 { ... }
fn set_m_position(self, value: impl Into<i32>) { ... }
fn ctor(self) { ... }
fn ctor_2(self, size: impl Into<i32>) { ... }
fn ctor_3(self, buffer: impl Into<Array<u8>>) { ... }
fn ctor_4(self, stream: impl Into<Stream_2>) { ... }
fn finalize(self) { ... }
fn setup(self, size: impl Into<i32>) { ... }
fn dispose(self) { ... }
fn get_position(self) -> i32 { ... }
fn set_position(self, value: impl Into<i32>) { ... }
fn get_length(self) -> i32 { ... }
fn has_next(self) -> bool { ... }
fn has_stream(self) -> bool { ... }
fn get_rest(self) -> i32 { ... }
fn clear(self) { ... }
fn fill(self, data: impl Into<u8>, size: impl Into<i32>) { ... }
fn write_bool(self, data: impl Into<bool>) { ... }
fn write_byte(self, data: impl Into<u8>) { ... }
fn write_sbyte(self, data: impl Into<i8>) { ... }
fn write8(self, data: impl Into<u8>) { ... }
fn write8_2(self, data: impl Into<i8>) { ... }
fn write_short(self, data: impl Into<i16>) { ... }
fn write_ushort(self, data: impl Into<u16>) { ... }
fn write16(self, data: impl Into<i16>) { ... }
fn write16_2(self, data: impl Into<u16>) { ... }
fn write_int(self, data: impl Into<i32>) { ... }
fn write_uint(self, data: impl Into<u32>) { ... }
fn write32(self, data: impl Into<i32>) { ... }
fn write32_2(self, data: impl Into<u32>) { ... }
fn write_hash(self, data: impl Into<Il2CppString>) { ... }
fn write_long(self, data: impl Into<i64>) { ... }
fn write_ulong(self, data: impl Into<u64>) { ... }
fn write64(self, data: impl Into<i64>) { ... }
fn write64_2(self, data: impl Into<u64>) { ... }
fn write_float(self, data: impl Into<f32>) { ... }
fn write_f32(self, data: impl Into<f32>) { ... }
fn write_vector2(self, data: impl Into<Vector2>) { ... }
fn write_vector3(self, data: impl Into<Vector3>) { ... }
fn write_quaternion(self, data: impl Into<Quaternion>) { ... }
fn write_color(self, data: impl Into<Color>) { ... }
fn write_block(self, data: impl Into<Array<u8>>) { ... }
fn write_block_2(self, data: impl Into<Array<u8>>, size: impl Into<i32>) { ... }
fn write_stream(self, stream: impl Into<Stream_2>) { ... }
fn write_string(self, data: impl Into<Il2CppString>) { ... }
fn skip(self, size: impl Into<i32>) { ... }
fn replace(self, position: impl Into<i32>) -> i32 { ... }
fn peek_byte(self) -> u8 { ... }
fn peek8(self) -> u8 { ... }
fn read_bool(self) -> bool { ... }
fn read_byte(self) -> u8 { ... }
fn read_sbyte(self) -> i8 { ... }
fn read8(self) -> u8 { ... }
fn read8_2(self, position: impl Into<i32>) -> u8 { ... }
fn read_short(self) -> i16 { ... }
fn read_ushort(self) -> u16 { ... }
fn read16(self) -> i16 { ... }
fn read16_2(self, position: impl Into<i32>) -> i16 { ... }
fn read_int(self) -> i32 { ... }
fn read_uint(self) -> u32 { ... }
fn read_hash(self) -> i32 { ... }
fn read32(self) -> i32 { ... }
fn read32_2(self, position: impl Into<i32>) -> i32 { ... }
fn read_long(self) -> i64 { ... }
fn read64(self) -> i64 { ... }
fn read_ulong(self) -> u64 { ... }
fn read_ulong_2(self, position: impl Into<i32>) -> u64 { ... }
fn read_float(self) -> f32 { ... }
fn read_f32(self) -> f32 { ... }
fn read_vector2(self) -> Vector2 { ... }
fn read_vector3(self) -> Vector3 { ... }
fn read_quaternion(self) -> Quaternion { ... }
fn read_color(self) -> Color { ... }
fn read_block(self) -> Array<u8> { ... }
fn read_block_2(self, bytes: impl Into<Array<u8>>) -> i32 { ... }
fn read_stream(self, stream: impl Into<Stream_2>) -> i32 { ... }
fn read_string(self) -> Il2CppString { ... }
fn read_string_2(self, empty: impl Into<Il2CppString>) -> Il2CppString { ... }
fn write8_3(self, data: impl Into<u8>, position: impl Into<i32>) { ... }
fn write16_3(self, data: impl Into<i16>, position: impl Into<i32>) { ... }
fn write32_3(self, data: impl Into<i32>, position: impl Into<i32>) { ... }
fn write_int_2(self, data: impl Into<i32>, position: impl Into<i32>) { ... }
fn write_begin(self, version: impl Into<i32>) { ... }
fn write_end(self) { ... }
fn read_begin(self, version: impl Into<i32>) -> bool { ... }
fn read_begin_2(self) -> i32 { ... }
fn read_end(self, is_warning: impl Into<bool>) { ... }
fn read_skip(self) { ... }
fn write_crc32(self) { ... }
fn read_crc32(self) -> bool { ... }
fn calc_crc32(self) -> u32 { ... }
fn get_hash_code(self) -> i32 { ... }
fn compress(self, offset: impl Into<i32>) -> bool { ... }
fn decompress(self, offset: impl Into<i32>) -> bool { ... }
fn test_compress(self) { ... }
fn dump(self, name: impl Into<Il2CppString>) { ... }
fn write_data<M0: IlType + Copy + ClassIdentity>(self, data: impl Into<M0>) { ... }
fn read_data<M0: IlType + Copy + ClassIdentity>(self) -> M0 { ... }
fn write_array<M0: IlType + Copy + ClassIdentity>(
self,
array: impl Into<StructDataArrayList_1<M0>>,
) { ... }
fn read_array<M0: IlType + Copy + ClassIdentity>(
self,
) -> StructDataArrayList_1<M0> { ... }
}Provided Methods§
Sourcefn get_m_buffer(self) -> Array<u8>
fn get_m_buffer(self) -> Array<u8>
get_m_Buffer() overload
Sourcefn set_m_buffer(self, value: impl Into<Array<u8>>)
fn set_m_buffer(self, value: impl Into<Array<u8>>)
set_m_Buffer(::unity::Array<u8>) overload
Sourcefn get_m_position(self) -> i32
fn get_m_position(self) -> i32
get_m_Position() overload
Sourcefn set_m_position(self, value: impl Into<i32>)
fn set_m_position(self, value: impl Into<i32>)
set_m_Position(i32) overload
Sourcefn get_position(self) -> i32
fn get_position(self) -> i32
get_Position() overload
Sourcefn set_position(self, value: impl Into<i32>)
fn set_position(self, value: impl Into<i32>)
set_Position(i32) overload
Sourcefn get_length(self) -> i32
fn get_length(self) -> i32
get_Length() overload
Sourcefn has_stream(self) -> bool
fn has_stream(self) -> bool
HasStream() overload
Sourcefn write_bool(self, data: impl Into<bool>)
fn write_bool(self, data: impl Into<bool>)
WriteBool(bool) overload
Sourcefn write_byte(self, data: impl Into<u8>)
fn write_byte(self, data: impl Into<u8>)
WriteByte(u8) overload
Sourcefn write_sbyte(self, data: impl Into<i8>)
fn write_sbyte(self, data: impl Into<i8>)
WriteSbyte(i8) overload
Sourcefn write_short(self, data: impl Into<i16>)
fn write_short(self, data: impl Into<i16>)
WriteShort(i16) overload
Sourcefn write_ushort(self, data: impl Into<u16>)
fn write_ushort(self, data: impl Into<u16>)
WriteUshort(u16) overload
Sourcefn write_uint(self, data: impl Into<u32>)
fn write_uint(self, data: impl Into<u32>)
WriteUint(u32) overload
Sourcefn write_hash(self, data: impl Into<Il2CppString>)
fn write_hash(self, data: impl Into<Il2CppString>)
WriteHash(::unity::Il2CppString) overload
Sourcefn write_long(self, data: impl Into<i64>)
fn write_long(self, data: impl Into<i64>)
WriteLong(i64) overload
Sourcefn write_ulong(self, data: impl Into<u64>)
fn write_ulong(self, data: impl Into<u64>)
WriteUlong(u64) overload
Sourcefn write_float(self, data: impl Into<f32>)
fn write_float(self, data: impl Into<f32>)
WriteFloat(f32) overload
Sourcefn write_vector2(self, data: impl Into<Vector2>)
fn write_vector2(self, data: impl Into<Vector2>)
WriteVector2(crate::unity_engine::vector2::Vector2) overload
Sourcefn write_vector3(self, data: impl Into<Vector3>)
fn write_vector3(self, data: impl Into<Vector3>)
WriteVector3(crate::unity_engine::vector3::Vector3) overload
Sourcefn write_quaternion(self, data: impl Into<Quaternion>)
fn write_quaternion(self, data: impl Into<Quaternion>)
WriteQuaternion(crate::unity_engine::quaternion::Quaternion) overload
Sourcefn write_color(self, data: impl Into<Color>)
fn write_color(self, data: impl Into<Color>)
WriteColor(crate::unity_engine::color::Color) overload
Sourcefn write_block(self, data: impl Into<Array<u8>>)
fn write_block(self, data: impl Into<Array<u8>>)
WriteBlock(::unity::Array<u8>) overload
Sourcefn write_block_2(self, data: impl Into<Array<u8>>, size: impl Into<i32>)
fn write_block_2(self, data: impl Into<Array<u8>>, size: impl Into<i32>)
WriteBlock(::unity::Array<u8>, i32) overload
Sourcefn write_stream(self, stream: impl Into<Stream_2>)
fn write_stream(self, stream: impl Into<Stream_2>)
WriteStream(crate::app::stream_2::Stream_2) overload
Sourcefn write_string(self, data: impl Into<Il2CppString>)
fn write_string(self, data: impl Into<Il2CppString>)
WriteString(::unity::Il2CppString) overload
Sourcefn read_sbyte(self) -> i8
fn read_sbyte(self) -> i8
ReadSbyte() overload
Sourcefn read_short(self) -> i16
fn read_short(self) -> i16
ReadShort() overload
Sourcefn read_ushort(self) -> u16
fn read_ushort(self) -> u16
ReadUshort() overload
Sourcefn read_ulong(self) -> u64
fn read_ulong(self) -> u64
ReadUlong() overload
Sourcefn read_ulong_2(self, position: impl Into<i32>) -> u64
fn read_ulong_2(self, position: impl Into<i32>) -> u64
ReadUlong(i32) overload
Sourcefn read_float(self) -> f32
fn read_float(self) -> f32
ReadFloat() overload
Sourcefn read_vector2(self) -> Vector2
fn read_vector2(self) -> Vector2
ReadVector2() overload
Sourcefn read_vector3(self) -> Vector3
fn read_vector3(self) -> Vector3
ReadVector3() overload
Sourcefn read_quaternion(self) -> Quaternion
fn read_quaternion(self) -> Quaternion
ReadQuaternion() overload
Sourcefn read_color(self) -> Color
fn read_color(self) -> Color
ReadColor() overload
Sourcefn read_block(self) -> Array<u8>
fn read_block(self) -> Array<u8>
ReadBlock() overload
Sourcefn read_block_2(self, bytes: impl Into<Array<u8>>) -> i32
fn read_block_2(self, bytes: impl Into<Array<u8>>) -> i32
ReadBlock(::unity::Array<u8>) overload
Sourcefn read_stream(self, stream: impl Into<Stream_2>) -> i32
fn read_stream(self, stream: impl Into<Stream_2>) -> i32
ReadStream(crate::app::stream_2::Stream_2) overload
Sourcefn read_string(self) -> Il2CppString
fn read_string(self) -> Il2CppString
ReadString() overload
Sourcefn read_string_2(self, empty: impl Into<Il2CppString>) -> Il2CppString
fn read_string_2(self, empty: impl Into<Il2CppString>) -> Il2CppString
ReadString(::unity::Il2CppString) overload
Sourcefn write_int_2(self, data: impl Into<i32>, position: impl Into<i32>)
fn write_int_2(self, data: impl Into<i32>, position: impl Into<i32>)
WriteInt(i32, i32) overload
Sourcefn write_begin(self, version: impl Into<i32>)
fn write_begin(self, version: impl Into<i32>)
WriteBegin(i32) overload
Sourcefn read_begin(self, version: impl Into<i32>) -> bool
fn read_begin(self, version: impl Into<i32>) -> bool
ReadBegin(i32) overload
Sourcefn read_begin_2(self) -> i32
fn read_begin_2(self) -> i32
ReadBegin() overload
Sourcefn write_crc32(self)
fn write_crc32(self)
WriteCrc32() overload
Sourcefn read_crc32(self) -> bool
fn read_crc32(self) -> bool
ReadCrc32() overload
Sourcefn calc_crc32(self) -> u32
fn calc_crc32(self) -> u32
CalcCrc32() overload
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn decompress(self, offset: impl Into<i32>) -> bool
fn decompress(self, offset: impl Into<i32>) -> bool
Decompress(i32) overload
Sourcefn test_compress(self)
fn test_compress(self)
TestCompress() overload
Sourcefn dump(self, name: impl Into<Il2CppString>)
fn dump(self, name: impl Into<Il2CppString>)
Dump(::unity::Il2CppString) overload
fn write_data<M0: IlType + Copy + ClassIdentity>(self, data: impl Into<M0>)
fn read_data<M0: IlType + Copy + ClassIdentity>(self) -> M0
fn write_array<M0: IlType + Copy + ClassIdentity>( self, array: impl Into<StructDataArrayList_1<M0>>, )
fn read_array<M0: IlType + Copy + ClassIdentity>( self, ) -> StructDataArrayList_1<M0>
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: IStream_2> IStream_2Methods for __T
app-stream_2 only.