MCPcopy Create free account
hub / github.com/buggins/coolreader / CheckPattern

Method CheckPattern

crengine/src/lvimg.cpp:797–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795 }
796public:
797 static bool CheckPattern( const lUInt8 * buf, int )
798 {
799 if (buf[0]!='G' || buf[1]!='I' || buf[2]!='F')
800 return false;
801 // version: '87a' or '89a'
802 if (buf[3]!='8' || buf[5]!='a')
803 return false;
804 if (buf[4]!='7' && buf[4]!='9')
805 return false; // bad version
806 return true;
807 }
808 virtual void Compact()
809 {
810 // TODO: implement compacting

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected