mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[0.2.x] added: typeInfo doc strings
git-svn-id: https://pykd.svn.codeplex.com/svn@82053 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
0a9c658da6
commit
5c6d5e720c
@ -399,19 +399,32 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
|
||||
python::class_<TypeInfo, TypeInfoPtr, python::bases<intBase>, boost::noncopyable >("typeInfo", "Class representing typeInfo", python::no_init )
|
||||
.def("__init__", python::make_constructor(TypeInfo::getTypeInfoByName ) )
|
||||
.def( "name", &TypeInfo::getName )
|
||||
.def( "size", &TypeInfo::getSize )
|
||||
.def( "staticOffset", &TypeInfo::getStaticOffsetByName )
|
||||
.def( "fieldOffset", &TypeInfo::getFieldOffsetByNameRecursive )
|
||||
.def( "bitOffset", &TypeInfo::getBitOffset )
|
||||
.def( "bitWidth", &TypeInfo::getBitWidth )
|
||||
.def( "field", &TypeInfo::getField )
|
||||
.def( "asMap", &TypeInfo::asMap )
|
||||
.def( "deref", &TypeInfo::deref )
|
||||
.def( "append", &TypeInfo::appendField )
|
||||
.def( "ptrTo", &TypeInfo::ptrTo )
|
||||
.def( "arrayOf", &TypeInfo::arrayOf )
|
||||
.def( "__str__", &TypeInfo::print )
|
||||
.def( "name", &TypeInfo::getName,
|
||||
"Return type name" )
|
||||
.def( "size", &TypeInfo::getSize,
|
||||
"Return type size" )
|
||||
.def( "staticOffset", &TypeInfo::getStaticOffsetByName,
|
||||
"Return offset of the static field" )
|
||||
.def( "fieldOffset", &TypeInfo::getFieldOffsetByNameRecursive,
|
||||
"Return offset of the nonstatic field" )
|
||||
.def( "bitOffset", &TypeInfo::getBitOffset,
|
||||
"Return bit field's offset" )
|
||||
.def( "bitWidth", &TypeInfo::getBitWidth,
|
||||
"Return bit field's length" )
|
||||
.def( "field", &TypeInfo::getField,
|
||||
"Return field's type" )
|
||||
.def( "asMap", &TypeInfo::asMap,
|
||||
"Return type as python dict ( for enum types )" )
|
||||
.def( "deref", &TypeInfo::deref,
|
||||
"Return type of pointer" )
|
||||
.def( "append", &TypeInfo::appendField,
|
||||
"Add a new field to custom defined struct" )
|
||||
.def( "ptrTo", &TypeInfo::ptrTo,
|
||||
"Return pointer to the type" )
|
||||
.def( "arrayOf", &TypeInfo::arrayOf,
|
||||
"Return array of the type" )
|
||||
.def( "__str__", &TypeInfo::print,
|
||||
"Return typa as a printable string" )
|
||||
.def( "__getattr__", &TypeInfo::getField )
|
||||
.def("__len__", &TypeInfo::getElementCount )
|
||||
.def("__getitem__", &TypeInfo::getElementByIndex );
|
||||
|
Loading…
Reference in New Issue
Block a user