Changeset 1586
- Timestamp:
- 28/04/2007 18:13:34 (5 years ago)
- Location:
- box/chris/merge/lib/common
- Files:
-
- 3 edited
-
PartialReadStream.cpp (modified) (1 diff)
-
PartialReadStream.h (modified) (2 diffs)
-
ReadGatherStream.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/common/PartialReadStream.cpp
r217 r1586 17 17 // 18 18 // Function 19 // Name: PartialReadStream::PartialReadStream(IOStream &, int) 20 // Purpose: Constructor, taking another stream and the number of bytes 21 // to be read from it. 19 // Name: PartialReadStream::PartialReadStream(IOStream &, 20 // pos_type) 21 // Purpose: Constructor, taking another stream and the number of 22 // bytes to be read from it. 22 23 // Created: 2003/08/26 23 24 // 24 25 // -------------------------------------------------------------------------- 25 PartialReadStream::PartialReadStream(IOStream &rSource, int BytesToRead) 26 PartialReadStream::PartialReadStream(IOStream &rSource, 27 pos_type BytesToRead) 26 28 : mrSource(rSource), 27 29 mBytesLeft(BytesToRead) -
box/chris/merge/lib/common/PartialReadStream.h
r217 r1586 24 24 { 25 25 public: 26 PartialReadStream(IOStream &rSource, intBytesToRead);26 PartialReadStream(IOStream &rSource, pos_type BytesToRead); 27 27 ~PartialReadStream(); 28 28 private: … … 40 40 private: 41 41 IOStream &mrSource; 42 intmBytesLeft;42 pos_type mBytesLeft; 43 43 }; 44 44 -
box/chris/merge/lib/common/ReadGatherStream.cpp
r217 r1586 60 60 // Function 61 61 // Name: ReadGatherStream::AddComponent(IOStream *) 62 // Purpose: Add a component to this stream, returning the index of this component 63 // in the internal list. Use this with AddBlock() 62 // Purpose: Add a component to this stream, returning the index 63 // of this component in the internal list. Use this 64 // with AddBlock() 64 65 // Created: 10/12/03 65 66 // … … 146 147 { 147 148 // Read! 148 ints = mBlocks[mCurrentBlock].mLength - mPositionInCurrentBlock;149 pos_type s = mBlocks[mCurrentBlock].mLength - mPositionInCurrentBlock; 149 150 if(s > bytesToRead) s = bytesToRead; 150 151 151 intr = mComponents[mBlocks[mCurrentBlock].mComponent]->Read(buffer, s, Timeout);152 pos_type r = mComponents[mBlocks[mCurrentBlock].mComponent]->Read(buffer, s, Timeout); 152 153 153 154 // update variables
Note: See TracChangeset
for help on using the changeset viewer.
