hasValidJPEGEnding

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

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

Parameters

fileContents ubyte[]

Contents of a (possibly) JPEG file.

Meta