I need to use an aligned buffer in FltWriteFile api. So i am allocating an aligned buffer using the FltAllocatePoolAlignedWithTag API.
after that i use memcpy to copy a previous buffer( a char array of size 100) to the new buffer allocated by FltAllocateAlignedWithTag .
I want to know if doing this destroys the alignment ??
Thanks for any help.
Regards,
Aman.
> I want to know if doing this destroys the alignment ??
I am not sure that I understand your question.
You copy from one buffer to another, so the alignment is determined by the
buffer to which you copy data.
–
Slava Imameyev, xxxxx@hotmail.com
wrote in message news:xxxxx@ntfsd…
>I need to use an aligned buffer in FltWriteFile api. So i am allocating an
>aligned buffer using the FltAllocatePoolAlignedWithTag API.
>
> after that i use memcpy to copy a previous buffer( a char array of size
> 100) to the new buffer allocated by FltAllocateAlignedWithTag .
>
> I want to know if doing this destroys the alignment ??
>
> Thanks for any help.
>
> Regards,
> Aman.
>
Surely not so, since the pointer value is not affected by memcpy.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> I need to use an aligned buffer in FltWriteFile api. So i am allocating an
aligned buffer using the FltAllocatePoolAlignedWithTag API.
>
> after that i use memcpy to copy a previous buffer( a char array of size 100)
to the new buffer allocated by FltAllocateAlignedWithTag .
>
> I want to know if doing this destroys the alignment ??
>
> Thanks for any help.
>
> Regards,
> Aman.
>