PR_CreateIOLayerStub 编辑
Creates a new layer.
Syntax
#include <prio.h> /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRFileDesc* PR_CreateIOLayerStub( /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRDescIdentity ident /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRIOMethods const *methods);
Parameters
The function has the following parameters:
ident
- The identity to be associated with the new layer.
methods
- A pointer to the
/wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PRIOMethods
structure specifying the functions for the new layer.
Returns
A new file descriptor for the specified layer.
Description
A new layer may be allocated by calling PR_CreateIOLayerStub
. The file descriptor returned contains the pointer to the I/O methods table provided. The runtime neither modifies the table nor tests its correctness.
The caller should override appropriate contents of the file descriptor returned before pushing it onto the protocol stack.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论