/*
* Copyright 1995, 1996 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
# define NEED_SLEEP
# include <stdhdrs.h>
# include <strbuf.h>
# include <error.h>
# include <debug.h>
# include <vararray.h>
# include <strarray.h>
# include <sha1.h>
# include <filesys.h>
# include "objstream.h"
# include "zfilestream.h"
# include "zlinflater.h"
ZFileStream::ZFileStream(
FileSys *packFile,
ZLibInflater *i,
P4INT64 offset,
Error *e )
{
eof = 0;
f = packFile;
inflater = i;
inflater->Seek( offset, e );
}
ZFileStream::~ZFileStream()
{
}
unsigned char
ZFileStream::Next( Error *e )
{
return inflater->GetChar( eof, e );
}
void
ZFileStream::GetLine( StrBuf *buf, Error *e )
{
return inflater->GetLine( buf, eof, e );
}
# |
Change |
User |
Description |
Committed |
|
#1
|
26288 |
Joel Van Eenwyk |
"Forking branch 2018-2 of perforce_software-p4 to joel_van_eenwyk-p4." |
|
|
//guest/perforce_software/p4/2018-2/sys/zfilestream.cc |
#1
|
25096 |
Nicholas Poole |
Populate //stream/workshop. |
|
|