I'm using GWT 2.9.0 and the DataViewImpl class does not respect offset argument to TypedArrays.createDataView(). You can see from the current implementation that the ArrayBufferViewImpl.byteOffset field is completely ignored and instead the byteOffset argument to the accessor methods is passed directly to the underlying ArrayBufferImpl.
I'm using GWT 2.9.0 and the DataViewImpl class does not respect offset argument to
TypedArrays.createDataView()
. You can see from the current implementation that theArrayBufferViewImpl.byteOffset
field is completely ignored and instead thebyteOffset
argument to the accessor methods is passed directly to the underlyingArrayBufferImpl
.https://github.com/gwtproject/gwt/blob/3dc21707a4b6aa1af7139986fa7e3b9c213fee05/user/src/com/google/gwt/typedarrays/server/DataViewImpl.java#L71-L73
Javascript
Equivalent Java
Results in: