# File lib/ole/storage/base.rb, line 445
      def truncate
        # this strips trailing AVAILs. come to think of it, this has the potential to break
        # bogus ole. if you terminate using AVAIL instead of EOC, like I did before. but that is
        # very broken. however, if a chain ends with AVAIL, it should probably be fixed to EOC
        # at load time.
        temp = reverse
        not_avail = temp.find { |b| b != AVAIL } and temp = temp[temp.index(not_avail)..-1]
        temp.reverse
      end