mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-20 02:17:23 +00:00
blockstoragedevice: switch parameter for set_fpos to uint64_t.
This commit is contained in:
@@ -75,8 +75,8 @@ int BlockStorageDevice::set_block_size(const int blk_size) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int BlockStorageDevice::set_fpos(const uint32_t lba) {
|
||||
this->cur_fpos = (uint64_t)lba * (uint64_t)this->raw_blk_size;
|
||||
int BlockStorageDevice::set_fpos(const uint64_t lba) {
|
||||
this->cur_fpos = lba * this->raw_blk_size;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
int set_host_file(std::string file_path);
|
||||
int set_block_size(const int blk_size);
|
||||
|
||||
int set_fpos(const uint32_t lba);
|
||||
int set_fpos(const uint64_t lba);
|
||||
int read_begin(int nblocks, uint32_t max_len = UINT32_MAX);
|
||||
int data_left() { return this->remain_size; }
|
||||
int read_more();
|
||||
|
||||
Reference in New Issue
Block a user