stgstrms.hxx (bbfc4cc7) | stgstrms.hxx (297a844a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 106 unchanged lines hidden (view full) --- 115// set to any value is you want the size to be incremented by certain values. 116 117class StgDataStrm : public StgStrm // a physical data stream 118{ 119 short nIncr; // size adjust increment 120 void Init( sal_Int32 nBgn, sal_Int32 nLen ); 121public: 122 StgDataStrm( StgIo&, sal_Int32 nBgn, sal_Int32 nLen=-1 ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 106 unchanged lines hidden (view full) --- 115// set to any value is you want the size to be incremented by certain values. 116 117class StgDataStrm : public StgStrm // a physical data stream 118{ 119 short nIncr; // size adjust increment 120 void Init( sal_Int32 nBgn, sal_Int32 nLen ); 121public: 122 StgDataStrm( StgIo&, sal_Int32 nBgn, sal_Int32 nLen=-1 ); |
123 StgDataStrm( StgIo&, StgDirEntry* ); | 123 StgDataStrm( StgIo&, StgDirEntry& ); |
124 void* GetPtr( sal_Int32 nPos, sal_Bool bForce, sal_Bool bDirty ); 125 void SetIncrement( short n ) { nIncr = n ; } 126 virtual sal_Bool SetSize( sal_Int32 ); 127 virtual sal_Int32 Read( void*, sal_Int32 ); 128 virtual sal_Int32 Write( const void*, sal_Int32 ); 129}; 130 131// The small stream class provides access to streams with a size < 4096 bytes. 132// This stream is a StgStream containing small pages. The FAT for this stream 133// is also a StgStream. The start of the FAT is in the header at DataRootPage, 134// the stream itself is pointed to by the root entry (it holds start & size). 135 136class StgSmallStrm : public StgStrm // a logical data stream 137{ 138 StgStrm* pData; // the data stream 139 void Init( sal_Int32 nBgn, sal_Int32 nLen ); 140public: 141 StgSmallStrm( StgIo&, sal_Int32 nBgn, sal_Int32 nLen ); | 124 void* GetPtr( sal_Int32 nPos, sal_Bool bForce, sal_Bool bDirty ); 125 void SetIncrement( short n ) { nIncr = n ; } 126 virtual sal_Bool SetSize( sal_Int32 ); 127 virtual sal_Int32 Read( void*, sal_Int32 ); 128 virtual sal_Int32 Write( const void*, sal_Int32 ); 129}; 130 131// The small stream class provides access to streams with a size < 4096 bytes. 132// This stream is a StgStream containing small pages. The FAT for this stream 133// is also a StgStream. The start of the FAT is in the header at DataRootPage, 134// the stream itself is pointed to by the root entry (it holds start & size). 135 136class StgSmallStrm : public StgStrm // a logical data stream 137{ 138 StgStrm* pData; // the data stream 139 void Init( sal_Int32 nBgn, sal_Int32 nLen ); 140public: 141 StgSmallStrm( StgIo&, sal_Int32 nBgn, sal_Int32 nLen ); |
142 StgSmallStrm( StgIo&, StgDirEntry* ); | 142 StgSmallStrm( StgIo&, StgDirEntry& ); |
143 virtual sal_Int32 Read( void*, sal_Int32 ); 144 virtual sal_Int32 Write( const void*, sal_Int32 ); 145 virtual sal_Bool IsSmallStrm() { return sal_True; } 146}; 147 148class StgTmpStrm : public SvMemoryStream 149{ 150 String aName; --- 16 unchanged lines hidden --- | 143 virtual sal_Int32 Read( void*, sal_Int32 ); 144 virtual sal_Int32 Write( const void*, sal_Int32 ); 145 virtual sal_Bool IsSmallStrm() { return sal_True; } 146}; 147 148class StgTmpStrm : public SvMemoryStream 149{ 150 String aName; --- 16 unchanged lines hidden --- |