SolFS中这些函数的等价物
Equivalents for these functions in SolFS?
我正在为一个应用程序进行扩展。我的扩展使用SolFS,我想使用它将所有文件流量重定向到SolFS。为了实现这一点,我需要一些帮助,因为SolFS并没有所有所需功能的等价物(确切地说是3)
这是我将要"转换"的代码:http://pastebin.com/REh5MqSa
以下是SolFS拥有的东西列表:
//stuff I need which SolFS has
x remove
x fopen
x fclose
x fwrite
x fread
x access
x fgetpos
x fsetpos
这些我可以很容易地创建自己:
//stuff I can easily make
fgetc//I can easily make this one, Read with length onecand add one position to the seek, right?
fputc//Also easily done, write with seek, 1 char
有了这些,我需要你的帮助:
//stuff solFS doesn't have and I need help with
ungetc//how would i create an equivalent in for use with SolFS?
lseek//how would I create an lseek?
fileno//how? for use with lseek
我将如何用SolFS提供的函数创建ungetc、lseek和fileno(fileno用于lseek)等同物?
我认为最好在论坛或帮助台的Eldos网站上询问您的问题。
为了实现ungetc,你必须分配一个小缓冲区,把字符放在ungetc函数中,并检查fgetc函数的缓冲区。
lseek函数,您可以通过SolFSStream.Seek方法实现,所以我认为您不需要执行fileno函数。
相关文章:
- "error: no matching function for call to"构造函数错误
- 什么时候调用组成单元对象的析构函数
- 继承函数的重载解析
- 为什么随机数生成器不在void函数中随机化数字,而在main函数中随机化
- C++模板来检查友元函数的存在
- 递归函数计算序列中的平方和(并输出过程)
- 对RValue对象调用的LValue ref限定成员函数
- 在C++STL中是否有Polyval(Matlab函数)等价物?
- 在本征C++中 MKL 的函数"zgges"等价物是多少?
- Arduino "delay"函数的常规c ++等价物是什么?
- TensorFlow:可用的Python函数的C++等价物
- C++ PHP 的 explode() 函数有等价物吗?
- 静态多态性中的纯抽象函数等价物是什么
- SolFS中这些函数的等价物
- 德尔菲函数和等价物C++
- VLOOKUP函数的C++等价物
- C++静态常量函数变量的 Go 等价物是什么?
- PHP 的 hash_hmac 函数的C++等价物是什么?
- 什么是c++ const-reference复制构造函数参数的python等价物?
- 是否有可能在实现文件中使用名称空间或等价物来避免必须在每个函数前加上类名