Rocket Division Software
http://www.starburnsoftware.com/forum/

Set Buffer Size failed (UDF2_VolumeSeekRead)
http://www.starburnsoftware.com/forum/starburn-sdk-f3/set-buffer-size-failed-udf2-volumeseekread-t2490.html
Page 1 of 1

Author:  Isch45 [ Wed Feb 19, 2014 7:41 am ]
Post subject:  Set Buffer Size failed (UDF2_VolumeSeekRead)

Hi,

I tried to change the buffer size in the function StarBurn_UDF2_VolumeSeekRead but got error response.
The default dwBufferSize = 2048 * 32 * 20, after changed to 2048 * 32 * 128 in StarBurn_UDF2_VolumeSeekRead, then got the return code 87 (not 0).

Here is the function I used:
m_pBuffer = (PUCHAR)HeapAlloc(GetProcessHeap(), 0, dwBufferSize);
while(BytesCopied.QuadPart < FileSystemImageSize.QuadPart) {
Rem.QuadPart = FileSystemImageSize.QuadPart - BytesCopied.QuadPart;
if(Rem.QuadPart < dwBufferSize)
dwBufferSize = (DWORD)Rem.QuadPart;
lStatus = StarBurn_UDF2_VolumeSeekRead(m_pVolume, m_pBuffer, dwBufferSize / 2048, (ULONG)(BytesCopied.QuadPart / 2048));

May be I use a wrong value for the buffer size? I just want to try if this change can speed up the whole process.

Author:  dima (staff) [ Fri Feb 28, 2014 9:51 am ]
Post subject:  Re: Set Buffer Size failed (UDF2_VolumeSeekRead)

Hello!

We are checking this issue!!

Regards,

Dmitry

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/