Class JAWT.Buffer

    • Constructor Detail

      • Buffer

        public Buffer(java.nio.ByteBuffer container)
        Creates a new JAWT.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by JAWT.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

    • Method Detail

      • version

        public int version()
        Returns the value of the version field.
      • GetDrawingSurface

        public long GetDrawingSurface()
        Returns the value of the GetDrawingSurface field.
      • FreeDrawingSurface

        public long FreeDrawingSurface()
        Returns the value of the FreeDrawingSurface field.
      • Lock

        public long Lock()
        Returns the value of the Lock field.
      • Unlock

        public long Unlock()
        Returns the value of the Unlock field.
      • GetComponent

        public long GetComponent()
        Returns the value of the GetComponent field.
      • version

        public JAWT.Buffer version(int value)
        Sets the specified value to the version field.
      • GetDrawingSurface

        public JAWT.Buffer GetDrawingSurface(long value)
        Sets the specified value to the GetDrawingSurface field.
      • FreeDrawingSurface

        public JAWT.Buffer FreeDrawingSurface(long value)
        Sets the specified value to the FreeDrawingSurface field.
      • Lock

        public JAWT.Buffer Lock(long value)
        Sets the specified value to the Lock field.
      • Unlock

        public JAWT.Buffer Unlock(long value)
        Sets the specified value to the Unlock field.
      • GetComponent

        public JAWT.Buffer GetComponent(long value)
        Sets the specified value to the GetComponent field.