Coder Social home page Coder Social logo

gwt-nio's Introduction

GWT/J2CL emulation for java.nio packages

This project provides emulation for the java.nio packages, forked from the PlayN project. There is also a utility class included to allow wrapping and unwrapping JS Typed Arrays.

To use in GWT2, depend on this Jar in your project, and add this to your .gwt.xml module file:

<inherits name="org.gwtproject.nio.GwtNioSupport" />

The org.gwtproject.nio.TypedArrayHelper class contains to helper methods, to turn java.nio.ByteBuffers into JavaScript ArrayBuffer (technically ArrayBufferView, but you can get an ArrayBuffer from there) and back again. For legacy reasons, HasArrayBufferView also still exists from the original PlayN project, and ByteBuffer still implements it, but using the TypedArrayHelper is encouraged for both directions of wrapping and unwrapping.

The interface TypedArrayHelper.Wrapper still exists, but its use is discouraged.

Take care in forking this repository, we may rewrite history to remove unrelated PlayN commits.

gwt-nio's People

Contributors

samskivert avatar jamie-threerings avatar fredsa avatar deadmoose avatar progers avatar roguenet avatar stefanhaustein avatar aduros avatar groves avatar tomfisher avatar guillerodriguez avatar mthomas96 avatar mmastrac avatar simensan avatar ruslansennov avatar bryanchacosky avatar hukun avatar korzha avatar niloc132 avatar kalmard0 avatar mbarbeaux avatar cdietze avatar yohcop avatar tconkling avatar leochatain avatar brimstedt avatar tulsidas avatar darthbinamira avatar dmitrykolesnikovich avatar inder123 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.