Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
String to Byte[] Conversion
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { byte[] bytes = null; int s= 43494; string datam="78780E80080000AA1D6C6273230001DC210D0A"; string _serverflag = s.ToString("X8"); Console.WriteLine(_serverflag); int NumberChars = datam.Length; bytes = new byte[NumberChars / 2]; for (int i = 0; i < NumberChars; i += 2){ bytes[i / 2] = Convert.ToByte(datam.Substring(i, 2), 16); Console.WriteLine(i/2+"="+bytes[i / 2]); } } } }
run
|
edit
|
history
|
help
0
Lesson 1.2 Part I
bc160401882
select z kolekcji w kolekcji (np. dokumenty i pizycje)
const
prime_number
OBJ Good Start
timeleft
Using System.Reflection to find Property Name and Value of any Generic class
check ca a place
Palindrome String