On Sat, Mar 13, 2021 at 6:25 AM rmfr wrote:
>
> Say here is a C api like `ssize_t writev(const struct iovec *iov, int
> iovcnt)` which the definition of iovec is like below:
>
> ```
> struct iovec {
> uint8_t *Base; /* Base address. */
> uint64_t Len;/* Length. */
> };
> ```
>
>
Say here is a C api like `ssize_t writev(const struct iovec *iov, int
iovcnt)` which the definition of iovec is like below:
```
struct iovec {
uint8_t *Base; /* Base address. */
uint64_t Len;/* Length. */
};
```
For C api which like `ssize_t write(const void *buf, size_t nbyte)