MCPcopy Create free account
hub / github.com/SFML/SFML / hasValidId3Tag

Function hasValidId3Tag

src/SFML/Audio/SoundFileReaderMp3.cpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool hasValidId3Tag(const std::uint8_t* header)
96{
97 return std::memcmp(header, "ID3", 3) == 0 &&
98 !((header[5] & 15) || (header[6] & 0x80) || (header[7] & 0x80) || (header[8] & 0x80) || (header[9] & 0x80));
99}
100} // namespace
101
102namespace sf::priv

Callers 1

checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected