title: delphi CopyMemory from index
body: <p>I am using Delphi 7. Could you tell me if there is or can be found somewhere a procedure
  which acts like: CopyMemory but I would be able to copy memory from 
  the specific number of byte. </p>
  
  <p>I need something with the following signature:</p>
  
  <pre><code>procedure CopyMemory(Destination: Pointer; Source: Pointer; Length: DWORD; fromByte: Integer);
  </code></pre>
  
  <p>I need this, because I have to send unsent bytes over tcpip and that's the reason why I have to extract unsent bytes stored in the memory.</p>
  
  <p>I have looked in the source and I would need to rewrite a little asm section.
  I have not touched asm for years and I would rather stay with something reliable ..</p>
  
  <p>Thanks!</p>