Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Numbers to org.gwtproject so it can be used externally #13

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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