DEFINITION - FUNCTION
    value%% = PeekB%%(addr&, offs&)
                  -- read a BYTE (8 bits) from GP memory
    value% = PeekW%(addr&, offs&)
                  -- read a WORD (INTEGER) (16 bits) from GP memory
    value& = PeekL&(addr&, offs&)
                  -- read a LONG (32 bits) from GP memory
    value&& = PeekLL&&(addr&, offs&)
                  -- read a LONG LONG (_INTEGER64) (64 bits) from GP memory

    value! = PeekS!(addr&, offs&) -- read a SINGLE (32 bits) from GP memory
    value# = PeekD#(addr&, offs&) -- read a DOUBLE (64 bits) from GP memory

    text$ = PeekSTR$(addr&, offs&) -- read a STRING from GP memory

OPERATION
    Read a value or text from GP memory starting at the address specified
    by the sum of the addr& and offs& arguments.  In fact, these arguments
    are interchangeable and one can even be set to zero, if the sum is
    pre-calculated and put in the other argument.

ARGUMENTS
    addr& -- a pointer to the memory (consider it a base address)
    offs& -- a byte offset added to the base address, may be zero

RESULT
    value -- the read value (or text for PeekSTR$)

NOTES
    You may use PeekSTR$ to read out a string created with CreateGPMString&,
    simply put the string pointer into addr& and set offs& to zero.

SEE ALSO
    Accessing GP Memory

                                                 Back to Function Reference