3 Star 3 Fork 0

Gitee 极速下载/Beef

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/beefytech/Beef
克隆/下载
qthelper.py 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
Brian Fiete 提交于 2019-08-23 11:56 . Initial checkin
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...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mirrors/Beef.git
[email protected]:mirrors/Beef.git
mirrors
Beef
Beef
master

搜索帮助