MCPcopy Create free account
hub / github.com/aguinet/dragonffi / getPortableFormatDescriptor

Function getPortableFormatDescriptor

bindings/python/cobj.cpp:482–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481
482std::string getPortableFormatDescriptor(Type const* Ty)
483{
484 std::string Ret;
485#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
486 Ret = "<";
487#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
488 Ret = ">";
489#else
490#error Unsupported endianess!
491#endif
492 Ret += getFormatDescriptorImpl(Ty, getBTyPortableFormatDescriptor, getPtrPortableFormatDescriptor);
493 return Ret;
494}
495
496std::unique_ptr<CObj> CObj::cast(QualType To) const
497{

Callers

nothing calls this directly

Calls 1

getFormatDescriptorImplFunction · 0.85

Tested by

no test coverage detected