Example usage for com.google.gwt.typedarrays.shared TypedArrays createInt32Array

List of usage examples for com.google.gwt.typedarrays.shared TypedArrays createInt32Array

Introduction

In this page you can find the example usage for com.google.gwt.typedarrays.shared TypedArrays createInt32Array.

Prototype

public static Int32Array createInt32Array(ArrayBuffer buffer, int byteOffset, int length) 

Source Link

Document

Create a Int32Array instance on buffer , starting at byteOffset into the buffer, continuing for length elements.

Usage

From source file:java.nio.DirectReadOnlyIntBufferAdapter.java

License:Apache License

DirectReadOnlyIntBufferAdapter(DirectByteBuffer byteBuffer) {
    super((byteBuffer.capacity() >> 2));
    this.byteBuffer = byteBuffer;
    this.byteBuffer.clear();
    this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(),
            byteBuffer.byteArray.byteOffset(), capacity);
}

From source file:java.nio.DirectReadWriteIntBufferAdapter.java

License:Apache License

DirectReadWriteIntBufferAdapter(DirectReadWriteByteBuffer byteBuffer) {
    super((byteBuffer.capacity() >> 2));
    this.byteBuffer = byteBuffer;
    this.byteBuffer.clear();
    this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(),
            byteBuffer.byteArray.byteOffset(), capacity);
}