jdk.nashorn.internal.runtime.arrays.TypedArrayData Java Examples

The following examples show how to use jdk.nashorn.internal.runtime.arrays.TypedArrayData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArrayBufferView.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #2
Source File: ArrayBufferView.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #3
Source File: ArrayBufferView.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #4
Source File: ArrayBufferView.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #5
Source File: ArrayBufferView.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #6
Source File: ArrayBufferView.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #7
Source File: ArrayBufferView.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #8
Source File: ArrayBufferView.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #9
Source File: ArrayBufferView.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #10
Source File: ArrayBufferView.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #11
Source File: ArrayBufferView.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #12
Source File: ArrayBufferView.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private int elementLength() {
    return ((TypedArrayData<?>)getArray()).getElementLength();
}
 
Example #13
Source File: ArrayBufferView.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #14
Source File: ArrayBufferView.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Byte length getter as per spec
 * @param self ArrayBufferView instance
 * @return array buffer view length in bytes
 */
@Getter(attributes = Attribute.NOT_ENUMERABLE | Attribute.NOT_WRITABLE | Attribute.NOT_CONFIGURABLE)
public static int byteLength(final Object self) {
    final ArrayBufferView view = (ArrayBufferView)self;
    return ((TypedArrayData<?>)view.getArray()).getElementLength() * view.bytesPerElement();
}
 
Example #15
Source File: ArrayBufferView.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #16
Source File: ArrayBufferView.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #17
Source File: ArrayBufferView.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying nativebuffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #18
Source File: ArrayBufferView.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #19
Source File: ArrayBufferView.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #20
Source File: ArrayBufferView.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);
 
Example #21
Source File: ArrayBufferView.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Factory method for array data
 *
 * @param nb    underlying native buffer
 * @param start start element
 * @param end   end element
 *
 * @return      new array data
 */
public abstract TypedArrayData<?> createArrayData(final ByteBuffer nb, final int start, final int end);