Source code of Windows XP (NT5)
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.

50 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1998.
  5. //
  6. // File: mmscbuf.hxx
  7. //
  8. // Contents: Memory Mapped Stream buffer for consecutive buffer mapping
  9. //
  10. // Classes: CMmStreamConsecBuf
  11. //
  12. // History: 22-Jul-93 AmyA Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <pmmstrm.hxx>
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Class: CMmStreamConsecBuf
  20. //
  21. // Purpose: Memory Mapped Stream Buffer for consecutive buffer mapping
  22. //
  23. // History: 22-Jul-93 AmyA Created
  24. //
  25. //----------------------------------------------------------------------------
  26. class CMmStreamConsecBuf: public CMmStreamBuf
  27. {
  28. public:
  29. CMmStreamConsecBuf();
  30. void Init( PMmStream * pMmStream );
  31. void Map ( ULONG cb );
  32. void Rewind ();
  33. BOOL Eof();
  34. LONGLONG CurrentOffset() const { return _liOffset.QuadPart; }
  35. private:
  36. PMmStream * _pMmStream;
  37. LARGE_INTEGER _liOffset;
  38. };