Created
March 8, 2016 11:58
-
-
Save orgads/54ec223f9eb5a715264e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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