mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-17 16:31:27 -04:00
refactor(pcmaudio): modernize ID comparison
This commit is contained in:
parent
39d2b53fba
commit
64c9e384ef
@ -297,9 +297,9 @@ class iff_parser final {
|
|||||||
ChunkHeaderType header;
|
ChunkHeaderType header;
|
||||||
size_t pos;
|
size_t pos;
|
||||||
|
|
||||||
bool is(std::string_view id) const {
|
bool is(std::string_view ident) const {
|
||||||
assert(sizeof(header.id) == id.size());
|
assert(sizeof(header.id) == ident.size());
|
||||||
return std::memcmp(header.id, id.data(), sizeof(header.id)) == 0;
|
return ident == this->id();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string_view id() const {
|
std::string_view id() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user