hasValidPNGEnding

Detects whether or not a passed array of bytes has a valid PNG ending.

pure @safe @nogc nothrow
bool
hasValidPNGEnding
(
const ubyte[] fileContents
)

Parameters

fileContents ubyte[]

Contents of a (possibly) PNG file.

Meta