You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1994 - 1998.
|
|
//
|
|
// File: SizeSer.hxx
|
|
//
|
|
// Contents: Class to compute size of serialized structure.
|
|
//
|
|
// History: 28-Jul-94 KyleP Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include <sstream.hxx>
|
|
|
|
class CSizeSerStream : public PSerStream
|
|
{
|
|
public:
|
|
|
|
CSizeSerStream();
|
|
|
|
virtual ~CSizeSerStream();
|
|
|
|
virtual void PutByte( BYTE b );
|
|
|
|
virtual void PutChar( char const * pc, ULONG cc );
|
|
|
|
virtual void PutWChar( WCHAR const * pwc, ULONG cc );
|
|
|
|
virtual void PutUShort( USHORT us );
|
|
|
|
virtual void PutULong( ULONG ul );
|
|
|
|
virtual void PutLong( long l );
|
|
|
|
virtual void PutFloat( float f );
|
|
|
|
virtual void PutDouble( double d );
|
|
|
|
virtual void PutString( char const * psz );
|
|
|
|
virtual void PutWString( WCHAR const * pwsz );
|
|
|
|
virtual void PutBlob( BYTE const * pb, ULONG cb );
|
|
|
|
virtual void PutGUID( GUID const & guid );
|
|
|
|
virtual void PutULONGLONG( ULONGLONG ul )
|
|
{}
|
|
|
|
inline unsigned Size() { return _cb; }
|
|
|
|
protected:
|
|
|
|
unsigned _cb;
|
|
};
|