delete a range of values from array and resize
Posted on 2007-03-22
I have a byte array that holds 100 values, i search through and find 20 values that i copy to a new array, then i need to delete the values from the original array and resize it.
Here is what i have so far.
'byte array to hold the chunk
Dim bytChunk As Byte()
'make it the needed size
ReDim bytChunk(shrtTailIndex - shrtHeadIndex)
'copy the bytes from the ring buffer to the chunkbuffer
Array.Copy(bytRingBuffer, shrtHeadIndex, bytChunk, 0, bytRingBuffer.Length)
What i need to know is how to delete the array of values and then resize it so there is no blank space inside if that would be the case