Byte Conversion

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
wrighty1986
VIP - Donator
VIP - Donator
Posts: 119
Joined: Sat Sep 12, 2009 11:55 am

Byte Conversion
wrighty1986
Byte Conversion

will convert all bytes,mb,gb,tb an all overs,

Image

Hope this will help someone on ear thanks. Mark :)
You do not have the required permissions to view the files attached to this post.
Back Aegean sorry not been on i.v just been moving.
User avatar
kosata6
Just Registered
Just Registered
Posts: 4
Joined: Tue Jun 22, 2010 3:13 pm

Re: Byte Conversion
kosata6
Good, but I calculate it himself. :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Byte Conversion
Axel
did you use integers ?
because if you did , I can't convert my C:\ drive's bytes because its over 2147483647
http://vagex.com/?ref=25000
User avatar
wrighty1986
VIP - Donator
VIP - Donator
Posts: 119
Joined: Sat Sep 12, 2009 11:55 am

Re: Byte Conversion
wrighty1986
cant remember now mate as i did that when i started just found it in my hard drive.
Back Aegean sorry not been on i.v just been moving.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Byte Conversion
mandai
You can use this to convert long integers to a bit string.
Code: Select all
        Dim input As Long = Long.MaxValue
        Dim bytes As Byte() = BitConverter.GetBytes(input)
        Dim ba As BitArray = New BitArray(bytes)

        Dim readable As String = ""
        For i As Integer = 0 To ba.Length - 1
            readable += Convert.ToByte(ba(i)).ToString()
        Next
        MsgBox(readable)
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

Re: Byte Conversion
Ffenixw0rks
Hey wrighty, you saw that it is in Tutorials section?
I can't see any tutorials... dunnno;
Image
6 posts Page 1 of 1
Return to “Tutorials”