CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: BioPhysEngr

Search: Search took 0.02 seconds.

  1. Re: [Code proposal] Convert byte array in ASCII to int

    You can parse them like this:



    string hexString = "F4";
    byte parsed = Byte.Parse(hexString, System.Globalization.NumberStyles.HexNumber);

    //Parsed now contains 0xF4 (=244)
  2. Re: [Code proposal] Convert byte array in ASCII to int

    Using the internal libraries, you can do it quicker:



    string asciiString = System.Text.Encoding.ASCII.getString(bTable);
    return Int32.Parse(asciiString);
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured