Class NativeArrayBufferView

    • Field Detail

      • useLittleEndian

        private static java.lang.Boolean useLittleEndian
      • arrayBuffer

        protected final NativeArrayBuffer arrayBuffer
        Many view objects can share the same backing array
      • offset

        protected final int offset
        The offset, in bytes, from the start of the backing array
      • byteLength

        protected final int byteLength
        The length, in bytes, of the portion of the backing array that we use
    • Constructor Detail

      • NativeArrayBufferView

        public NativeArrayBufferView()
      • NativeArrayBufferView

        protected NativeArrayBufferView​(NativeArrayBuffer ab,
                                        int offset,
                                        int byteLength)
    • Method Detail

      • getBuffer

        public NativeArrayBuffer getBuffer()
        Return the buffer that backs this view.
      • getByteOffset

        public int getByteOffset()
        Return the offset in bytes from the start of the buffer that this view represents.
      • getByteLength

        public int getByteLength()
        Return the length, in bytes, of the part of the buffer that this view represents.
      • useLittleEndian

        protected static boolean useLittleEndian()
      • isArg

        protected static boolean isArg​(java.lang.Object[] args,
                                       int i)
      • getInstanceIdValue

        protected java.lang.Object getInstanceIdValue​(int id)
        Description copied from class: IdScriptableObject
        Get id value. If id value is constant, descendant can call cacheIdValue to store value in the permanent cache. Default implementation creates IdFunctionObject instance for given id and cache its value
        Overrides:
        getInstanceIdValue in class IdScriptableObject