diff options
author | Dr. David Alan Gilbert | 2015-11-05 19:10:35 +0100 |
---|---|---|
committer | Juan Quintela | 2015-11-10 14:51:48 +0100 |
commit | 9504fb510c87c3dd6fe2e9a25e84c1426672f226 (patch) | |
tree | f6fa039d3c9411ccaadf729104e9e79a2d84756d /include/monitor/qdev.h | |
parent | Rename mis->file to from_src_file (diff) | |
download | qemu-9504fb510c87c3dd6fe2e9a25e84c1426672f226.tar.gz qemu-9504fb510c87c3dd6fe2e9a25e84c1426672f226.tar.xz qemu-9504fb510c87c3dd6fe2e9a25e84c1426672f226.zip |
Add qemu_get_buffer_in_place to avoid copies some of the time
qemu_get_buffer always copies the data it reads to a users buffer,
however in many cases the file buffer inside qemu_file could be given
back to the caller, avoiding the copy. This isn't always possible
depending on the size and alignment of the data.
Thus 'qemu_get_buffer_in_place' either copies the data to a supplied
buffer or updates a pointer to the internal buffer if convenient.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/monitor/qdev.h')
0 files changed, 0 insertions, 0 deletions