Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 03-11-2011   #1 (permalink)

Hova's Avatar
The Thresh Prince
Join Date: Sep 2010
Location: Canada
Posts: 4,139
Thanks: 4,541
Default PackageIO Reading float32

Can PackageIO's Reader use float32? I'm trying to get it to work but I'm having a hard time.
__________________

Hova is offline Send a message via AIM to Hova
Reply With Quote


Old 03-11-2011   #2 (permalink)
VenomIzPro's Avatar
Join Date: Sep 2010
Location: That one house next to the other one
Posts: 431
Thanks: 88
Default Re: PackageIO Reading float32

I think it can just try it.

Code:
PackageIO.Reader reader = new PackageIO.Reader(FilePath, Endian.Big, 0); // or you can put your offset there so instead of 0 put 0x159. Just helps so you can get rid of reader.Position 
textBox1.Text = reader.ReadUInt32().ToString();
//of integerInput1.Value = reader.ReadUInt32();
textBox1.Text = reader.ReadInt32().ToString();
//or integerInput1.Value = reader.ReadInt32();
So yea I think it is able to
__________________
VenomIzPro is offline Send a message via AIM to VenomIzPro Send a message via MSN to VenomIzPro Send a message via Yahoo to VenomIzPro
Reply With Quote


Old 03-11-2011   #3 (permalink)

Oscar's Avatar
Join Date: Oct 2010
Location: UK
Posts: 1,071
Thanks: 1,464
Default Re: PackageIO Reading float32

Quote:
Originally Posted by Hova View Post
Can PackageIO's Reader use float32? I'm trying to get it to work but I'm having a hard time.
Use ReadSingle(), single is just another word for float.
Oscar is offline Send a message via AIM to Oscar
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:39 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM