js源码

function stringToLongArray(string, includeLength) {
    var length = string.length;
    var result = [];
    for (var i = 0; i < length; i += 4) {
        result[i >> 2] = string.charCodeAt(i) | string.charCodeAt(i + 1) << 8 | string.charCodeAt(i + 2) << 16 | string.charCodeAt(i + 3) << 24;
}

C#源码

private void stringToLongArray(string s, int includeLength)
{
    int length = s.Length;
    long[] result = new long[includeLength];
    for (var i = 0; i < length; i += 4)
    {
        result[i >> 2] = s[i] | s[i + 1] << 8 | s[i + 2] << 16 | s[i+3] << 24;
    }
}