unsafe

unsafe 提供以下5种能力:

  • 解引用裸指针
  • 调用一个unsafe或外部函数
  • 访问或修改一个可变的静态变量
  • 实现一个unsafe特征
  • 访问union中的字段