[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
[*SPAM*] RE: RE: [offlist] xplRioNet + MVP
- Subject: [*SPAM*] RE: RE: [offlist] xplRioNet + MVP
- From: "Tony Tofts" <tony@xxxxxxxxxx>
- Date: Mon, 11 Oct 2004 19:13:24 +0100
Hi John,
I take the file size and split it up into 4 bytes for squirting out in the
tcp packet.
The code is in mvp.vb, Sock_Receive_Media
' file size
fs = FileLen(RC.MVPStreamMovie.Filename)
b(16) = Int(fs / 16777216)
b(17) = Int((fs - (b(16) * 16777216)) / 65536)
b(18) = Int((fs - (b(16) * 16777216) - (b(17) * 65536)) / 256)
b(19) = fs - (b(16) * 16777216) - (b(17) * 65536) - (b(18) * 256)
Where b is a byte array and fs is a long
Thanks
Tony
> -----Original Message-----
> From: John B [mailto:home-automation@xxxxxxx]
> Sent: 11 October 2004 17:56
> To: ukha_xpl@xxxxxxx
> Subject: [ukha_xpl] RE: [offlist] xplRioNet + MVP
>
>
> Tony,
>
> > In theory the filesize limit is 4gb (size represented by 4
> x 8bits),
> > though I don't have anything anywhere near as large as even 2gb
to
> > test what might be the problem.
>
> You'll only get 4GB from a 32-bit integer if you're using an
> unsigned integer.
>
> VB.NET uses signed integers, so you'll only be able to store
> a value up to 2GB unless you're careful with how the sign bit
> is handled in VB.
>
> Where's the code in question that does the file size
> handling? Maybe I can figure out what's going wrong (if anything)
>
> Thanks,
>
> John
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> $9.95 domain names from Yahoo!. Register anything.
> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/h6uqlB/TM
> --------------------------------------------------------------
> ------~->
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> http://www.xpl.myby.co.uk To
Post a Message:
> ukha_xpl@xxxxxxx To Subscribe:
> ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|