略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FFI::scope

2024-04-26

FFI::scope

(PHP 7 >= 7.4.0, PHP 8)

FFI::scopeInstantiates an FFI object with C declarations parsed during preloading

说明

public static FFI::scope(string $name): FFI

Instantiates an FFI object with C declarations parsed during preloading.

The FFI::scope() method is safe to call multiple times for the same scope. Multiple references to the same scope may be loaded at the same time.

参数

name

The scope name defined by a special FFI_SCOPE define.

返回值

Returns the freshly created FFI object.

参见

  • FFI::load() - Loads C declarations from a C header file
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/ffi.scope.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3