Class ByteBufferMemoryIO

    • Constructor Detail

      • ByteBufferMemoryIO

        public ByteBufferMemoryIO​(Runtime runtime,
                                  java.nio.ByteBuffer buffer)
    • Method Detail

      • getPointer

        public Pointer getPointer​(long offset)
        Description copied from class: Pointer
        Reads an Pointer value at the given offset.
        Specified by:
        getPointer in class Pointer
        Parameters:
        offset - the offset from the start of the memory this Pointer represents at which the value will be read.
        Returns:
        the Pointer value read from memory.
      • getPointer

        public Pointer getPointer​(long offset,
                                  long size)
        Description copied from class: Pointer
        Reads an Pointer value at the given offset.
        Specified by:
        getPointer in class Pointer
        Parameters:
        offset - the offset from the start of the memory this Pointer represents at which the value will be read.
        size - the maximum size of the memory location the returned Pointer represents.
        Returns:
        the Pointer value read from memory.
      • putPointer

        public void putPointer​(long offset,
                               Pointer value)
        Description copied from class: Pointer
        Writes a Pointer value at the given offset.
        Specified by:
        putPointer in class Pointer
        Parameters:
        offset - The offset from the start of the memory this Pointer represents at which the value will be written.
        value - the Pointer value to be written to memory.