Codota Logo
ArrayBufferNative
Code IndexAdd Codota to your IDE (free)

How to use
ArrayBufferNative
in
com.google.gwt.typedarrays.client

Best Java code snippets using com.google.gwt.typedarrays.client.ArrayBufferNative (Showing top 18 results out of 315)

  • Common ways to obtain ArrayBufferNative
private void myMethod () {
ArrayBufferNative a =
  • Codota IconArrayBufferNative.create(length)
  • Smart code suggestions by Codota
}
origin: libgdx/libgdx

DirectByteBuffer (int capacity) {
  this(ArrayBufferNative.create(capacity), capacity, 0);
}
origin: libgdx/libgdx

DirectByteBuffer (int capacity) {
  this(ArrayBufferNative.create(capacity), capacity, 0);
}
origin: com.google.gwt/gwt-servlet

@Override
public ArrayBuffer createArrayBuffer(int length) {
 return ArrayBufferNative.create(length);
}
origin: com.google.gwt/gwt-servlet

protected DataViewNativeEmul(ArrayBuffer buffer, int byteOffset, int byteLength) {
 this.buffer = buffer;
 this.bufferByteOffset = byteOffset;
 this.byteLength = byteLength;
 tempBuffer = Uint8ArrayNative.create(ArrayBufferNative.create(8), 0, 8);
 uint8Array = Uint8ArrayNative.create(buffer, byteOffset, byteLength);
}
origin: com.google.gwt/gwt-servlet

/**
 * Create a {@link Uint8ClampedArray} instance from a short array.
 * 
 * @param array
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(short[] array) {
 int len = array.length;
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 result.set(array);
 return result;
}
origin: com.google.gwt/gwt-servlet

/**
 * Create a {@link Uint8ClampedArray} instance from a JavaScript array
 * containing integers.
 * 
 * @param array JavaScript array object
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(JsArrayInteger array) {
 int len = array.length();
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 JsUtils.set(result, array);
 return result;
}
origin: com.vaadin.external.gwt/gwt-user

@Override
public ArrayBuffer createArrayBuffer(int length) {
 return ArrayBufferNative.create(length);
}
origin: thothbot/parallax

DirectByteBuffer (int capacity) {
  this(ArrayBufferNative.create(capacity), capacity, 0);
}
origin: net.wetheinter/gwt-user

@Override
public ArrayBuffer createArrayBuffer(int length) {
 return ArrayBufferNative.create(length);
}
origin: net.wetheinter/gwt-user

/**
 * Create a {@link Uint8ClampedArray} instance from a short array.
 * 
 * @param array
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(short[] array) {
 int len = array.length;
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 result.set(array);
 return result;
}
origin: net.wetheinter/gwt-user

protected DataViewNativeEmul(ArrayBuffer buffer, int byteOffset, int byteLength) {
 this.buffer = buffer;
 this.bufferByteOffset = byteOffset;
 this.byteLength = byteLength;
 tempBuffer = Uint8ArrayNative.create(ArrayBufferNative.create(8), 0, 8);
 uint8Array = Uint8ArrayNative.create(buffer, byteOffset, byteLength);
}
origin: sriharshachilakapati/SilenceEngine

GwtDirectBuffer(int sizeInBytes)
{
  super(sizeInBytes);
  if (!foundEndianness)
  {
    littleEndian = getEndianness();
    foundEndianness = true;
  }
  buffer = ArrayBufferNative.create(sizeInBytes);
  view = DataViewNative.create(buffer);
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Create a {@link Uint8ClampedArray} instance from a short array.
 * 
 * @param array
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(short[] array) {
 int len = array.length;
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 result.set(array);
 return result;
}
origin: com.vaadin.external.gwt/gwt-user

protected DataViewNativeEmul(ArrayBuffer buffer, int byteOffset, int byteLength) {
 this.buffer = buffer;
 this.bufferByteOffset = byteOffset;
 this.byteLength = byteLength;
 tempBuffer = Uint8ArrayNative.create(ArrayBufferNative.create(8), 0, 8);
 uint8Array = Uint8ArrayNative.create(buffer, byteOffset, byteLength);
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Create a {@link Uint8ClampedArray} instance from a JavaScript array
 * containing integers.
 * 
 * @param array JavaScript array object
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(JsArrayInteger array) {
 int len = array.length();
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 JsUtils.set(result, array);
 return result;
}
origin: net.wetheinter/gwt-user

/**
 * Create a {@link Uint8ClampedArray} instance from a JavaScript array
 * containing integers.
 * 
 * @param array JavaScript array object
 * @return {@link Uint8ClampedArray} instance
 */
public static Uint8ClampedArray create(JsArrayInteger array) {
 int len = array.length();
 Uint8ClampedArray result = create(ArrayBufferNative.create(len), 0, len);
 JsUtils.set(result, array);
 return result;
}
origin: org.uberfire/uberfire-commons-editor-client

  /**
   * Creates a Blob instance for the raw image data-uri value.
   * @param data The image uri data.
   * @param mimeType The media type for the generated blob.
   */
  public static Blob dataImageAsBlob(final String data,
                    final String mimeType) {
    final String byteString = Window.atob(data);
    final ArrayBuffer buffer = ArrayBufferNative.create(byteString.length());
    final Uint8Array ia = Uint8ArrayNative.create(buffer);
    for (int i = 0; i < byteString.length(); i++) {
      ia.set(i,
          byteString.charAt(i));
    }
    return new BlobImpl(new Object[]{ia},
              BlobPropertyBag.create(mimeType));
  }
}
origin: kiegroup/appformer

  /**
   * Creates a Blob instance for the raw image data-uri value.
   * @param data The image uri data.
   * @param mimeType The media type for the generated blob.
   */
  public static Blob dataImageAsBlob(final String data,
                    final String mimeType) {
    final String byteString = Window.atob(data);
    final ArrayBuffer buffer = ArrayBufferNative.create(byteString.length());
    final Uint8Array ia = Uint8ArrayNative.create(buffer);
    for (int i = 0; i < byteString.length(); i++) {
      ia.set(i,
          byteString.charAt(i));
    }
    return new BlobImpl(new Object[]{ia},
              BlobPropertyBag.create(mimeType));
  }
}
com.google.gwt.typedarrays.clientArrayBufferNative

Javadoc

JS native implementation of ArrayBuffer.

Most used methods

  • create

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Path (java.nio.file)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now