{"id":4765,"date":"2024-11-26T15:39:30","date_gmt":"2024-11-26T15:39:30","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4765"},"modified":"2024-11-27T15:29:42","modified_gmt":"2024-11-27T15:29:42","slug":"buffers","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/memory-python\/buffers","title":{"rendered":"Buffers"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Move buffer down one place<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t#Move the buffer down 1\n\tfor index in range (0, MY_BUFFER_SIZE):\n\t\tmy_buffer&#91;index] = my_buffer&#91;(index + 1)]\n\tmy_buffer&#91;(MY_BUFFER_SIZE - 1)] = some_new_value_being_added<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Move buffer up one place<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    #Move the buffer up 1\n    for index in range ( (MY_BUFFER_SIZE - 1), 0, -1):\n        my_buffer&#91;index] = my_buffer&#91;(index - 1)]\n    my_buffer&#91;0] = some_new_value_being_added<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Move buffer down one place Move buffer up one place<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[346,325,320],"tags":[],"class_list":["post-4765","post","type-post","status-publish","format-standard","hentry","category-arrays","category-lists-python","category-memory-python"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4765"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4765\/revisions"}],"predecessor-version":[{"id":4766,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4765\/revisions\/4766"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}