/*
* 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 );
}
P4INT64
ZFileStream::GetBytesRead()
{
return inflater->GetBytesRead();
}
# |
Change |
User |
Description |
Committed |
|
#1
|
22561 |
rlranft |
Populate -o //guest/perforce_software/p4/2016-2/...
//guest/rlranft/p4/2016-2/.... |
|
|
//guest/perforce_software/p4/2016-2/sys/zfilestream.cc |
#1
|
22283 |
mark_mears |
Initial add of the 2016.2 p4/p4api source code. |
|
|