mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
62
qthelper.py
Normal file
62
qthelper.py
Normal file
|
@ -0,0 +1,62 @@
|
|||
from dumper import *
|
||||
|
||||
def qdump__Beefy__String(d, value):
|
||||
qdump__Beefy__StringImpl(d, value)
|
||||
|
||||
def qdump__Beefy__StringImpl(d, value):
|
||||
if (int(value["mAllocSizeAndFlags"]) & 0x40000000) == 0:
|
||||
d.putCharArrayHelper(d.addressOf(value["mPtr"]), value["mLength"], 1)
|
||||
else:
|
||||
d.putCharArrayHelper(value["mPtr"], value["mLength"], 1)
|
||||
d.putNumChild(2)
|
||||
if d.isExpanded():
|
||||
with Children(d):
|
||||
d.putIntItem("[Length]", value["mLength"])
|
||||
d.putIntItem("[Size]", int(value["mAllocSizeAndFlags"]) & 0x3FFFFFFF)
|
||||
|
||||
def qdump__Beefy__Array(d, value):
|
||||
numItems = int(value["mSize"])
|
||||
d.putValue("Size=" + str(numItems))
|
||||
d.putNumChild(int(numItems) + 2)
|
||||
if d.isExpanded():
|
||||
with Children(d):
|
||||
d.putIntItem("[Size]", value["mSize"])
|
||||
d.putIntItem("[AllocSize]", value["mSize"])
|
||||
for i in range(0, int(numItems)):
|
||||
d.putSubItem("[" + str(i) + "]", value["mVals"] + i)
|
||||
|
||||
def qdump__Beefy__BfSizedArray(d, value):
|
||||
numItems = int(value["mSize"])
|
||||
d.putValue("Size=" + str(numItems))
|
||||
d.putNumChild(int(numItems) + 1)
|
||||
if d.isExpanded():
|
||||
with Children(d):
|
||||
d.putIntItem("[Size]", value["mSize"])
|
||||
for i in range(0, int(numItems)):
|
||||
d.putSubItem("[" + str(i) + "]", value["mVals"] + i)
|
||||
|
||||
def qdump__Beefy__BfAstNode(d, value):
|
||||
d.putCharArrayHelper(value["mSource"]["mSrc"] + int(value["mSrcStart"]), int(value["mSrcEnd"]) - int(value["mSrcStart"]), 1)
|
||||
d.putPlainChildren(value)
|
||||
|
||||
def qdump__System__String(d, value):
|
||||
if (int(value["mAllocSizeAndFlags"]) & 0x40000000) == 0:
|
||||
d.putCharArrayHelper(d.addressOf(value["mPtr"]), value["mLength"], 1)
|
||||
else:
|
||||
d.putCharArrayHelper(value["mPtr"], value["mLength"], 1)
|
||||
d.putNumChild(2)
|
||||
if d.isExpanded():
|
||||
with Children(d):
|
||||
d.putIntItem("[Length]", value["mLength"])
|
||||
d.putIntItem("[Size]", int(value["mAllocSizeAndFlags"]) & 0x3FFFFFFF)
|
||||
|
||||
def qdump__System__Collections__Generic__List(d, value):
|
||||
numItems = int(value["mSize"])
|
||||
d.putValue("Size=" + str(numItems))
|
||||
d.putNumChild(int(numItems) + 2)
|
||||
if d.isExpanded():
|
||||
with Children(d):
|
||||
d.putIntItem("[Size]", value["mSize"])
|
||||
d.putIntItem("[AllocSize]", value["mSize"])
|
||||
for i in range(0, int(numItems)):
|
||||
d.putSubItem("[" + str(i) + "]", value["mVals"] + i)
|
Loading…
Add table
Add a link
Reference in a new issue