memcanvas Package

memcanvas Package

The envi.memcanvas module is the home of the base MemoryRenderer object and MemoryCanvas objects.

class envi.memcanvas.MemoryCanvas(mem, syms=None)[source]

A memory canvas is a place where the textual representation of memory will be displayed. The methods implemented here show how a memory canvas which simply prints would be implemented.

addNameText(text, name=None, typename=None)[source]
addRenderer(name, rend)[source]
addText(text, tag=None)[source]

Add text to the canvas with a specified tag.

NOTE: Implementors should probably check _canv_scrolled to decide if they should scroll to the end of the view...

addVaText(text, va)[source]
clearCanvas()[source]
getNameTag(name, typename=None)[source]

Retrieve a “tag” object for a name. “Name” tags will (if possible) be highlighted in the rendered interface

getRenderer(name)[source]
getRendererNames()[source]
getTag(typename)[source]

Retrieve a non-named tag (doesn’t highlight or do anything particularly special, but allows color by typename).

getVaTag(va)[source]

Retrieve a tag object suitable for showing that the text added with this tag should link through to the specified virtual address in the memory canvas.

render(va, size, rend=None)[source]
renderMemory(va, size, rend=None)[source]
renderMemoryAppend(size)[source]
renderMemoryPrepend(size)[source]
renderMemoryUpdate(va, size)[source]
setNavCallback(callback)[source]

Set a navigation “callback” that will be called with a memory expression as it’s first argument anytime the canvas recieves user input which desires nav...

setRenderer(name)[source]
setScrolledCanvas(scroll)[source]
write(msg)[source]
class envi.memcanvas.MemoryRenderer[source]

A top level object for all memory renderers

rendChars(mcanv, bytes)[source]
rendSymbol(mcanv, va)[source]

If there is a symbolic name for the current va, print it...

rendVa(mcanv, va)[source]
render(mcanv, va)[source]

Render one “unit” and return the size you ate. mcanv will be a MemoryCanvas extender and va is the virtual address you are expected to render.

class envi.memcanvas.StringMemoryCanvas(mem, syms=None)[source]

Bases: envi.memcanvas.MemoryCanvas

addText(text, tag=None)[source]

Table Of Contents

This Page