memcpy((uint8_t *)b->priv.buf + offset, buf, size);
return size;
}
memcpy((uint8_t *)b->priv.buf + offset, buf, size);
return size;
}
+
+int kblock_swClose(UNUSED_ARG(struct KBlock, *b))
+{
+ return 0;
+}
int kblock_swStore(struct KBlock *b, block_idx_t index);
size_t kblock_swReadBuf(struct KBlock *b, void *buf, size_t offset, size_t size);
size_t kblock_swWriteBuf(struct KBlock *b, const void *buf, size_t offset, size_t size);
int kblock_swStore(struct KBlock *b, block_idx_t index);
size_t kblock_swReadBuf(struct KBlock *b, void *buf, size_t offset, size_t size);
size_t kblock_swWriteBuf(struct KBlock *b, const void *buf, size_t offset, size_t size);
+int kblock_swClose(struct KBlock *b);