lib/os.rb
def read(page:, offset:, pid:)
    return if (pcb = get_pcb :pid => pid).nil?

    @memory.read :frame => pcb.page_table[page], :offset => offset
  end
# Read a byte from a process's memory
#
# @param page [Integer] the page number
# @param offset [Integer] the offset from the start of the page
# @param pid [Integer] the process's id
#
# @return [Integer] the content of memory at the specified location
Read a byte from a process's memory
Read a byte from a process ' s memory
def read(page:, offset:, pid:)
    return if (pcb = get_pcb :pid => pid).nil?
    @memory.read :frame => pcb.page_table[page], :offset => offset
  end
def read ( page : , offset : , pid : ) return if ( pcb = get_pcb :pid => pid ) . nil? @memory . read :frame => pcb . page_table [ page ] , :offset => offset end
Read a byte from a process's memory
Read a byte from a process ' s memory
the content of memory at the specified location
the content of memory at the specified location
Integer
page
the page number
the page number
offset
the offset from the start of the page
the offset from the start of the page
pid
the process's id
the process ' s id