本文整理汇总了C++中NPNetscapeFuncs::write方法的典型用法代码示例。如果您正苦于以下问题:C++ NPNetscapeFuncs::write方法的具体用法?C++ NPNetscapeFuncs::write怎么用?C++ NPNetscapeFuncs::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NPNetscapeFuncs
的用法示例。
在下文中一共展示了NPNetscapeFuncs::write方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MyNPN_Write
static
int32 MyNPN_Write(NPP instance, NPStream* stream, int32 len,
void* buffer)
{
int32 ret;
DEB(ef, "-> NPN_Write( %x, 0x%x, %d, 0x%x )\n", instance, stream, len, buffer);
ret = gNetscapeFuncs.write( instance, stream, len, buffer );
DEB(ef, "<- NPN_Write = %d\n", ret);
return ret;
}
示例2: NPN_Write
int32_t NPN_Write(NPP instance, NPStream * stream, int32_t len, void *buffer)
{
int navMinorVersion = NPNFuncs.version & 0xFF;
int32_t rv = 0;
if (navMinorVersion >= NPVERS_HAS_STREAMOUTPUT)
rv = NPNFuncs.write(instance, stream, len, buffer);
else
rv = -1;
return rv;
}
示例3: NPN_Write
int32 NPN_Write(NPP instance, NPStream *stream, int32 len, void *buffer)
{
int navMinorVersion = NPNFuncs.version & 0xFF;
int32 rv = 0;
if(logger)
logger->logCall(action_npn_write, (DWORD)instance, (DWORD)stream, (DWORD)len, (DWORD)buffer);
if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT )
rv = NPNFuncs.write(instance, stream, len, buffer);
else
rv = -1;
if(logger)
logger->logReturn();
return rv;
}
示例4: NPN_Write
int32_t NPN_Write(NPP instance, NPStream *stream, int32_t len, void *buffer)
{
return NPNFuncs.write(instance, stream, len, buffer);
}