bit shift to divide str.length by 2k
<p>I have a chunk of data coming from an ajax call. I need to split this chunk up into smaller chunks of a predefined amount, not by a delimiter character, but by an amount. 2k is what I would like. I am trying to come up with a snippet that would bit shift divide the data, and place each chunk including the remaining data into arrays. So if the original chunk is 1 meg, then I would have <code>chunk[0]=2k</code> of data, <code>chunk[1]=next 2k</code> of data..... and so on until there is no more data to assign.</p>

<p>Thanks
Pat</p>
