Skip to content

Commit

Permalink
Replace array by span
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 7, 2023
1 parent dee3b24 commit f133740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/devices/scsihd_nec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void SCSIHD_NEC::Open()
FinalizeSetup(image_offset);
}

pair<int, int> SCSIHD_NEC::SetParameters(const array<char, 512>& data, int size)
pair<int, int> SCSIHD_NEC::SetParameters(span<const char> data, int size)
{
array<uint8_t, 512> root_sector = {};
memcpy(root_sector.data(), data.data(), root_sector.size());
Expand Down
2 changes: 1 addition & 1 deletion cpp/devices/scsihd_nec.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SCSIHD_NEC : public SCSIHD //NOSONAR The inheritance hierarchy depth is ac

private:

pair<int, int> SetParameters(const array<char, 512>&, int);
pair<int, int> SetParameters(span<const char>, int);

static int GetInt16LittleEndian(const uint8_t *);
static int GetInt32LittleEndian(const uint8_t *);
Expand Down

0 comments on commit f133740

Please sign in to comment.