diff options
Diffstat (limited to 'src/packedintarray.cpp')
-rw-r--r-- | src/packedintarray.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/packedintarray.cpp b/src/packedintarray.cpp index d395aa2..bcd2f66 100644 --- a/src/packedintarray.cpp +++ b/src/packedintarray.cpp | |||
@@ -142,6 +142,18 @@ void PackedIntArray::set( const PackedIntArray &rSrc ) | |||
142 | memcpy( aData, rSrc.aData, iSize*sizeof(Store) ); | 142 | memcpy( aData, rSrc.aData, iSize*sizeof(Store) ); |
143 | } | 143 | } |
144 | 144 | ||
145 | void PackedIntArray::copy( int iDest, const PackedIntArray &rSrc, int iStart, | ||
146 | int iSize ) | ||
147 | { | ||
148 | iCount = iSize; | ||
149 | checkCapacity(); | ||
150 | |||
151 | for( int j = 0; j < iSize; j++ ) | ||
152 | { | ||
153 | set( j+iDest, rSrc.get( iStart+j ) ); | ||
154 | } | ||
155 | } | ||
156 | |||
145 | void PackedIntArray::trim() | 157 | void PackedIntArray::trim() |
146 | { | 158 | { |
147 | while( iCount > 0 && get( iCount-1 ) == 0 ) | 159 | while( iCount > 0 && get( iCount-1 ) == 0 ) |