Skip to content

Commit

Permalink
Move Numbers to org.gwtproject so it can be used externally (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 authored May 15, 2024
1 parent 9c6e390 commit 10ed5ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/java/nio/ByteBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import elemental2.core.ArrayBufferView;
import elemental2.core.Int8Array;
import org.gwtproject.nio.HasArrayBufferView;
import org.gwtproject.nio.Numbers;
import org.gwtproject.nio.TypedArrayHelper;

/** A buffer for bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package java.nio;
package org.gwtproject.nio;

import elemental2.core.Float32Array;
import elemental2.core.Float64Array;
import elemental2.core.Int32Array;
import elemental2.core.Int8Array;

class Numbers {
import java.nio.ByteOrder;

public class Numbers {
static Int8Array wba = new Int8Array(8);
static Int32Array wia = new Int32Array(wba.buffer, 0, 2);
static Float32Array wfa = new Float32Array(wba.buffer, 0, 2);
Expand Down

0 comments on commit 10ed5ac

Please sign in to comment.