__cxa_demangle

char* abi::__cxa_demangle    (    const char *     mangled_name,    
char *     output_buffer,    
size_t *     length,    
int *     status    
)    
New ABI-mandated entry point in the C++ runtime library for demangling.
char* abi::__cxa_demangle(const char* mangled_name,                          char* output_buffer, size_t* length,                          int* status)
  • Parameters:

    • mangled_name

    • A NUL-terminated character string containing the name to be demangled.

    • output_buffer

    • A region of memory, allocated with malloc, of *length bytes, into which the demangled name is stored. If output_buffer is not long enough, it is expanded using realloc. output_buffer may instead be NULL; in that case, the demangled name is placed in a region of memory allocated with malloc.

    • length

    • If length is non-NULL, the length of the buffer containing the demangled name is placed in *length.

    • status

    • *status is set to one of the following values:

      • 0: The demangling operation succeeded.

      • -1: A memory allocation failure occurred.

      • -2: mangled_name is not a valid name under the C++ ABI mangling rules.

      • -3: One of the arguments is invalid.

  • Returns:

  • A pointer to the start of the NUL-terminated demangled name, or NULL if the demangling fails. The caller is responsible for deallocating this memory using free.

  • Parameters:


  • mangled_name A NUL-terminated character string containing the name to be demangled.

    output_buffer A region of memory, allocated with malloc, of *length bytes, into which the demangled name is stored. If output_buffer is not long enough, it is expanded using realloc. output_buffer may instead be NULL; in that case, the demangled name is placed in a region of memory allocated with malloc.

    length If length is non-NULL, the length of the buffer containing the demangled name is placed in *length.

    status *status is set to one of the following values:
    • 0: The demangling operation succeeded.

    • -1: A memory allocation failiure occurred.

    • -2: mangled_name is not a valid name under the C++ ABI mangling rules.

    • -3: One of the arguments is invalid.


转载于:https://my.oschina.net/shannanzi/blog/497951

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值