MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / render_layers

Method render_layers

python/lineardisassembly.py:666–684  ·  view source on GitHub ↗

Get the list of Render Layers which will be applied to this cursor, at the end of calls to lines(). :return: List of Render Layers

(self)

Source from the content-addressed store, hash-verified

664
665 @property
666 def render_layers(self) -> List['binaryninja.RenderLayer']:
667 """
668 Get the list of Render Layers which will be applied to this cursor, at the
669 end of calls to lines().
670
671 :return: List of Render Layers
672 """
673 count = ctypes.c_size_t(0)
674 layers = core.BNGetLinearViewCursorRenderLayers(self.handle, count)
675 assert layers is not None, "core.BNGetLinearViewCursorRenderLayers returned None"
676
677 try:
678 result = []
679 for i in range(0, count.value):
680 result.append(binaryninja.RenderLayer(handle=layers[i]))
681
682 return result
683 finally:
684 core.BNFreeRenderLayerList(layers)
685
686 @render_layers.setter
687 def render_layers(self, render_layers: List['binaryninja.RenderLayer']):

Callers

nothing calls this directly

Calls 4

remove_render_layerMethod · 0.95
add_render_layerMethod · 0.95
RenderLayerMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected