Class MSG.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new MSG.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 MSG.SIZEOF, and its mark will be undefined.

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

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • hwnd

        public long hwnd()
        Returns the value of the hwnd field.
      • message

        public int message()
        Returns the value of the message field.
      • wParam

        public long wParam()
        Returns the value of the wParam field.
      • lParam

        public long lParam()
        Returns the value of the lParam field.
      • time

        public int time()
        Returns the value of the time field.
      • pt

        public POINT pt()
        Returns a POINT view of the pt field.
      • pt

        public MSG.Buffer pt​(java.util.function.Consumer<POINT> consumer)
        Passes the pt field to the specified Consumer.
      • hwnd

        public MSG.Buffer hwnd​(long value)
        Sets the specified value to the hwnd field.
      • message

        public MSG.Buffer message​(int value)
        Sets the specified value to the message field.
      • wParam

        public MSG.Buffer wParam​(long value)
        Sets the specified value to the wParam field.
      • lParam

        public MSG.Buffer lParam​(long value)
        Sets the specified value to the lParam field.
      • time

        public MSG.Buffer time​(int value)
        Sets the specified value to the time field.