]> git.proxmox.com Git - qemu.git/blobdiff - hw/iov.h
iov: Add iov_to_buf and iov_size helpers
[qemu.git] / hw / iov.h
index 5e3e54123d5b2b04f29cf656c07f3897bf9c4893..60a85470bd7336f932fbd52bdf7fc87183c9420c 100644 (file)
--- a/hw/iov.h
+++ b/hw/iov.h
@@ -14,3 +14,6 @@
 
 size_t iov_from_buf(struct iovec *iov, unsigned int iovcnt,
                     const void *buf, size_t size);
+size_t iov_to_buf(const struct iovec *iov, const unsigned int iovcnt,
+                  void *buf, size_t offset, size_t size);
+size_t iov_size(const struct iovec *iov, const unsigned int iovcnt);