Skip to content

Instantly share code, notes, and snippets.

@orgads
Created March 8, 2016 11:58
Show Gist options
  • Save orgads/54ec223f9eb5a715264e to your computer and use it in GitHub Desktop.
Save orgads/54ec223f9eb5a715264e to your computer and use it in GitHub Desktop.
def qdump__MyArray(d, value):
maxItems = 1000
buffer = value["Buf"]
count = value["Count"]
objsize = value["ObjSize"]
valueType = d.templateArgument(value.type, 0)
d.putItemCount(count, maxItems)
d.putNumChild(count)
if d.isExpanded():
with Children(d, count, maxNumChild=maxItems, childType = valueType):
for i in d.childRange():
d.putSubItem(i, (buffer + (i * objsize)).dereference().cast(valueType))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment