Uint8Array view = TypedArrays.createUint8Array(4);
view.set(0, 1);
view.set(1, 0);
view.set(2, 128);
view.set(3, 129);
String str = JsUtils.stringFromArrayBuffer(view.buffer());
assertEquals(4, str.length());
assertEquals(1, str.charAt(0));
assertEquals(0, str.charAt(1));
assertEquals(128, str.charAt(2));
assertEquals(129, str.charAt(3));