Jump to content
Sign in to follow this  
rshotbolt

Duplicate line in TMemoryStream.WriteBuffer

Recommended Posts

The following lines are duplicated when copying to an empty buffer. Is this necessary and if so, why?

      TMarshal.Move(mData,0,FBuffer.handle,0,buffer.length);
      TMarshal.Move(mData,0,FBuffer.Handle,0,Buffer.length);

Share this post


Link to post
Share on other sites
23 minutes ago, rshotbolt said:

The following lines are duplicated when copying to an empty buffer. Is this necessary and if so, why?

      TMarshal.Move(mData,0,FBuffer.handle,0,buffer.length);
      TMarshal.Move(mData,0,FBuffer.Handle,0,Buffer.length);

I just ran some tests. The extra Move does not cause an error or wrong result, but it's extra.

I'll remove it in the next update.

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×