MegaApi.Crypto.str_to_a32 C# (CSharp) Method

str_to_a32() public static method

public static str_to_a32 ( byte b ) : uint[]
b byte
return uint[]
        public static uint[] str_to_a32(byte[] b)
        {
            var a = new uint[(b.Length + 3) >> 2];

            for (var i = 0; i < b.Length; i++)
            {
                a[i >> 2] |= ((uint)b[i] << (24 - (i & 3) * 8));
            }

            return a;
        }

Same methods

Crypto::str_to_a32 ( string b ) : uint[]