cbmimage
Loading...
Searching...
No Matches
readwriteblock.c File Reference

cbmimage: read and write blocks into/from an image More...

#include "cbmimage/internal.h"
#include "cbmimage/alloc.h"
#include <assert.h>
#include <string.h>
Include dependency graph for readwriteblock.c:

Functions

static int cbmimage_i_adjust_relative_address (cbmimage_fileimage *image, cbmimage_blockaddress *block)
 
uint8_t * cbmimage_i_get_address_of_block (cbmimage_fileimage *image, cbmimage_blockaddress block)
 
int cbmimage_read_block (cbmimage_fileimage *image, cbmimage_blockaddress block, void *buffer, size_t buffersize)
 read a block from the image and copy it into the provided buffer
 
int cbmimage_write_block (cbmimage_fileimage *image, cbmimage_blockaddress block, void *buffer, size_t buffersize)
 write a block to the image by copying it from the provided buffer
 
int cbmimage_read_next_block (cbmimage_fileimage *image, cbmimage_blockaddress *block, void *buffer, size_t buffersize)
 read the next block from the image and copy it into the provided buffer
 

Detailed Description

cbmimage: read and write blocks into/from an image


Author
Spiro Trikaliotis