Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Hex_Base64
//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) { var bytes1 = FromHex("03240065653561336331352D376362372D343462322D393664382D653164363631346265323637002E00000000004BCA963D5C85924DB85709990C2E264D010081AC085044D04B429F5FB883D94FA1AF000001F7E3C40000"); Console.WriteLine(bytes1.Length); //Your code goes here var bytes = Convert.FromBase64String("AAMkADQ2N2VmMDQ1LTY2MjItNGExMC1iZWMxLTQ1NWUwYWIzNTdmNwBGAAAAAAC0C7CUlo1cTbV+rumK7wlaBwBcw67lpRcaTYd82bltlyWRAAAAAAEJAABcw67lpRcaTYd82bltlyWRAAAAAHSvAAABEgAQAAvld9qQ0LFMkhfT3EAOToc="); Console.WriteLine(ToHex(bytes)); } public static string ToHex(byte[] bytes) { string res = ""; for(int i=0; i<bytes.Length; i++) { res+= Convert.ToString(bytes[i], 16); } return res; } public static byte[] FromHex(string hexString) { int length = hexString.Length; byte[] bytes = new byte[length / 2]; for (int i = 0; i < length; i += 2) { bytes[i / 2] = Convert.ToByte(hexString.Substring(i, 2), 16); } return bytes; } } }
run
|
edit
|
history
|
help
0
ColoredTriangleVaoOpenTK4OpenGL31 (Added shaders to Program.cs)
Math Main
StackOverflowException
bc160400236
Nuzrath 284
contraseña
Delegate Example
List
ew
get weekofDay from DateTime in C#