Convert to 8 bits ( 1 byte )
Hello every one
i know that
Int16 = 2 bytes
Int32 and int = 4 bytes
Int64 = 8 bytes
just one question how to convert to 1 byte as cheat engine does
i have this code to convert number to float,double and 2 bytes
Dim Mynumber As Long = TextBox1.Text
Dim MynumberAsByte As Byte() = BitConverter.GetBytes(Mynumber)
Label4.Text = BitConverter.ToSingle(MynumberAsByte , 0)
Label5.Text = BitConverter.ToDouble(MynumberAsByte , 0)
Label15.Text = BitConverter.ToUInt16(MynumberAsByte , 0)
Label16.Text = ...........................................
i hope someone reply to me soon with code that does it
i know that
Int16 = 2 bytes
Int32 and int = 4 bytes
Int64 = 8 bytes
just one question how to convert to 1 byte as cheat engine does
i have this code to convert number to float,double and 2 bytes
Dim Mynumber As Long = TextBox1.Text
Dim MynumberAsByte As Byte() = BitConverter.GetBytes(Mynumber)
Label4.Text = BitConverter.ToSingle(MynumberAsByte , 0)
Label5.Text = BitConverter.ToDouble(MynumberAsByte , 0)
Label15.Text = BitConverter.ToUInt16(MynumberAsByte , 0)
Label16.Text = ...........................................
i hope someone reply to me soon with code that does it
