fn getFilePos(ms: *const MsfStream) u64 ms: *const MsfStream1126
1127
1128
1129
1130
1131
1132
1133 fn getFilePos(ms: *const MsfStream) u64 {
const pos = ms.logicalPos();
const block_id = pos / ms.block_size;
const block = ms.blocks[block_id];
const offset = pos % ms.block_size;
return block * ms.block_size + offset;
}