Author Archives: Maksim

Fast HexStringToByteArray and ByteArrayToHexString conversion

Recently I needed to efficiently convert hex strings to byte arrays. .NET Framework provides BitConverter.ToString() for byte array to hex, but there’s no hex to array equivalent. BitConverter itself is not efficient at handling arrays to hex strings. For symmetry I … Continue reading

Posted in Performance | Tagged | Leave a comment