[Lazarus] Copy buffer of PWord to TMemoryStream

Leonardo M. Ramé l.rame at griensu.com
Sun Mar 24 19:11:27 CET 2013


On 2013-03-24 19:02:18 +0100, Mattias Gaertner wrote:
> On Sun, 24 Mar 2013 14:51:26 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
> 
> 
> lStream.WriteBuffer(lTmpBuff^, lBufSize*SizeOf(Word));

I've already tried that, but it doesn't work as expected.

Maybe the problem is caused because lBufSize is a longint, instead of
Word or LongWord?.
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list