Skip to content

Create ArrayBuffer #7

@vincentma

Description

@vincentma
function createArrayBuffer(array /* basic array */) {
    return new Uint8Array(array).buffer;
}


// ==================
var arr = [0,0,2,196,112,115,115,104,0,0,0,0,154,4,240,121,152,64,66,134
        ,171,146,230,91,224,136,95,149,0,0,2,164,164,2,0,0,1,0,1,0
        ,154,2,60,0,87,0,82,0,77,0,72,0,69,0,65,0,68,0,69,0
        ,82,0,32,0,120,0,109,0,108,0,110,0,115,0,61,0,34,0,104,0
        ,116,0,116,0,112,0,58,0,47,0,47,0,115,0,99,0,104,0,101,0
        ,109,0,97,0,115,0,46,0,109,0,105,0,99,0,114,0,111,0,115,0
        ,111,0,102,0,116,0,46,0,99,0,111,0,109,0,47,0,68,0,82,0
        ,77,0,47,0,50,0,48,0,48,0,55,0,47,0,48,0,51,0,47,0
        ,80,0,108,0,97,0,121,0,82,0,101,0,97,0,100,0,121,0,72,0
        ,101,0,97,0,100,0,101,0,114,0,34,0,32,0,118,0,101,0,114,0
        ,115,0,105,0,111,0,110,0,61,0,34,0,52,0,46,0,48,0,46,0
        ,48,0,46,0,48,0,34,0,62,0,60,0,68,0,65,0,84,0,65,0
        ,62,0,60,0,80,0,82,0,79,0,84,0,69,0,67,0,84,0,73,0
        ,78,0,70,0,79,0,62,0,60,0,75,0,69,0,89,0,76,0,69,0
        ,78,0,62,0,49,0,54,0,60,0,47,0,75,0,69,0,89,0,76,0
        ,69,0,78,0,62,0,60,0,65,0,76,0,71,0,73,0,68,0,62,0
        ,65,0,69,0,83,0,67,0,84,0,82,0,60,0,47,0,65,0,76,0
        ,71,0,73,0,68,0,62,0,60,0,47,0,80,0,82,0,79,0,84,0
        ,69,0,67,0,84,0,73,0,78,0,70,0,79,0,62,0,60,0,75,0
        ,73,0,68,0,62,0,108,0,69,0,65,0,74,0,88,0,69,0,119,0
        ,112,0,54,0,85,0,97,0,104,0,51,0,82,0,80,0,71,0,71,0
        ,119,0,56,0,105,0,69,0,65,0,61,0,61,0,60,0,47,0,75,0
        ,73,0,68,0,62,0,60,0,67,0,72,0,69,0,67,0,75,0,83,0
        ,85,0,77,0,62,0,107,0,68,0,120,0,57,0,49,0,84,0,57,0
        ,113,0,99,0,49,0,56,0,61,0,60,0,47,0,67,0,72,0,69,0
        ,67,0,75,0,83,0,85,0,77,0,62,0,60,0,76,0,65,0,95,0
        ,85,0,82,0,76,0,62,0,104,0,116,0,116,0,112,0,115,0,58,0
        ,47,0,47,0,112,0,114,0,111,0,100,0,45,0,108,0,105,0,99,0
        ,101,0,110,0,115,0,105,0,110,0,103,0,46,0,115,0,100,0,45,0
        ,110,0,103,0,112,0,46,0,110,0,101,0,116,0,47,0,108,0,105,0
        ,99,0,101,0,110,0,115,0,105,0,110,0,103,0,47,0,114,0,105,0
        ,103,0,104,0,116,0,115,0,109,0,97,0,110,0,97,0,103,0,101,0
        ,114,0,46,0,97,0,115,0,109,0,120,0,60,0,47,0,76,0,65,0
        ,95,0,85,0,82,0,76,0,62,0,60,0,47,0,68,0,65,0,84,0
        ,65,0,62,0,60,0,47,0,87,0,82,0,77,0,72,0,69,0,65,0
        ,68,0,69,0,82,0,62,0,0,0,0,52,112,115,115,104,0,0,0,0
        ,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,20
        ,8,1,18,16,92,9,64,148,41,76,70,233,161,221,19,198,27,15,34,16
        ,0,0,0,52,112,115,115,104,1,0,0,0,16,119,239,236,192,178,77,2
        ,172,227,60,30,82,226,251,75,0,0,0,1,92,9,64,148,41,76,70,233
        ,161,221,19,198,27,15,34,16,0,0,0,0];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions