Simple question about copyTo (CtrlrLuaMemoryBlock…)

Home Forums General Programming Simple question about copyTo (CtrlrLuaMemoryBlock…)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #693
    dasfaker
    Keymaster
      • Topics: 80
      • Replies: 793
      • Total: 873
      • ★★★

      When you use the function copyTo (CtrlrLuaMemoryBlock &destinationData, int sourceOffset, int numBytes), do you replace the content of the memory block with the new data or append the new data?

      #4737
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★
        #4738
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Thx Atom. After reading the link, I see that what I need is use MemoryBlock::insert. Is this registered?

          #4739
          atom
          Keymaster
            • Topics: 159
            • Replies: 2945
            • Total: 3104
            • ★★★★★

            No, the CtrlrLuaMemoryBlock is a wrapper class not a director mapping, but i already added this, the new nightly will have the insert() method.

            #4740
            dasfaker
            Keymaster
              • Topics: 80
              • Replies: 793
              • Total: 873
              • ★★★

              Thx. It would be cool if you add MemoryBlock::removeSection too.

              #4741
              atom
              Keymaster
                • Topics: 159
                • Replies: 2945
                • Total: 3104
                • ★★★★★

                will do.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The forum ‘Programming’ is closed to new topics and replies.
              There is currently 0 users and 73 guests online
              No users are currently active
              Forum Statistics
              Threads: 2,495, Posts: 17,374, Members: 77,605
              Most users ever online was 12 on January 22, 2019 3:47 pm
              Ctrlr