taoseng commented on issue #6083:
URL: https://github.com/apache/opendal/issues/6083#issuecomment-2826945108
Hi, every one. In my work, I encountered a scenario involving access to an
object storage system, which is an in-house solution at my company that is
mostly compatible with S3. My main task is to integrate OpenDAL with RocksDB's
FSWritableFile and FSRandomAccessFile. Since I don’t want to use the AWS/MinIO
SDK, I attempted to use OpenDAL. However, I discovered that the C binding
doesn’t support seek, and the C++ binding doesn’t support stream writing. As a
result, I couldn’t simultaneously implement both read and write operations.
I want to raise a PR to provide this features, but i dont known how to
design the api.
```c
struct opendal_error* opendal_reader_seek(struct opendal_reader *self, ?
offset, ? whence);
```
there are too many version like fseek:
```
int fseek(FILE *stream, long offset, int whence);
int fseeko(FILE *stream, off_t offset, int whence);
int fseeko64( FILE *fp, off64_t offset,int whence );
int _fseeki64(FILE *stream, __int64 offset,int origin);
```
I'm struggling with what types to use for offset and whence!
cc @Xuanwo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]