/*
* Copyright 2011 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* FileStrBuf.h - FileSys interface to in-memory data
*
* Public classes:
*
* FileStrPtr - FileSys that reads from a StrPtr
*/
class FileStrPtr : public FileSys
{
public:
FileStrPtr( StrPtr *s );
// FileSys methods needed by ReadFile
int Read( char *buf, int len, Error *e );
void Open( FileOpenMode mode, Error *e );
offL_t GetSize();
// FileSys stubs
void Close( Error *e ) {};
void Write( const char *buf, int len, Error *e ) {};
int Stat() { return FSF_EXISTS; }
int StatModTime() { return 0; }
void Truncate( Error *e ) {};
void Unlink( Error *e = 0 ) {};
void Rename( FileSys *target, Error *e ) {};
void Chmod( FilePerm perms, Error *e ) {};
void ChmodTime( Error *e ) {};
private:
StrPtr *ptr;
int offset;
};
# |
Change |
User |
Description |
Committed |
|
#1
|
15902 |
Matt Attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
//guest/perforce_software/p4/2014_1/sys/filestrbuf.h |
#1
|
15901 |
Matt Attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/sys/filestrbuf.h |
#1
|
12188 |
Matt Attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/sys/filestrbuf.h |
#1
|
9129 |
Matt Attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|