Move buffer down one place

	#Move the buffer down 1
	for index in range (0, MY_BUFFER_SIZE):
		my_buffer[index] = my_buffer[(index + 1)]
	my_buffer[(MY_BUFFER_SIZE - 1)] = some_new_value_being_added

Move buffer up one place

    #Move the buffer up 1
    for index in range ( (MY_BUFFER_SIZE - 1), 0, -1):
        my_buffer[index] = my_buffer[(index - 1)]
    my_buffer[0] = some_new_value_being_added
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *