-static int kblockram_writeBlock(struct KBlock *b, block_idx_t index, const void *buf)
-{
- KBlockRam *r = KBLOCKRAM_CAST(b);
- ASSERT(buf);
- ASSERT(index < b->blk_cnt);
-
- memcpy(r->membuf + index * r->b.blk_size, buf, r->b.blk_size);
- return 0;
-}
-
-static int kblockram_readBlock(struct KBlock *b, block_idx_t index, void *buf)
+static size_t kblockram_writeDirect(struct KBlock *b, block_idx_t index, const void *buf, size_t offset, size_t size)