MCPcopy Create free account
hub / github.com/SOUI2/soui / Open

Method Open

demo/MemFlash.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35HANDLE CMemFlash::Open( const char * pszFileName )
36{
37 if(strncmp(pszFileName,HOMEHEADER,HOMEHEADER_SIZE)!=0) return NULL;
38 SStringA str(pszFileName + HOMEHEADER_SIZE);
39 int pos=str.ReverseFind(NAME_SEP);
40 if(pos==-1) return NULL;
41 FileID *pID=new FileID;
42 pID->strType=S_CA2T(str.Left(pos));
43 pID->strName=S_CA2T(str.Right(str.GetLength()-pos-1));
44 return pID;
45}
46
47void CMemFlash::Close( HANDLE f )
48{

Callers 1

OnInstallMethod · 0.45

Calls 4

RightMethod · 0.80
ReverseFindMethod · 0.45
LeftMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected