Kohinoor24
June 24th, 2002, 08:23 AM
Iam writing into a buffer an object as bytes.
Then When Iam Trying to read from the buffer the object as say
out.write(m_pRead, BytesToRead);
where "m_pRead" is a pointer to the beginning of the buffer & "BytesToRead" is the no:of bytes to read.But Iam not getting the expected result in the return file.
But when I store the same thing in a list & iterate the list to a console output, Iam getting the desired result.
so why Iam not able to get the result when Iam reading the object as bytes
Thanks in advance
Then When Iam Trying to read from the buffer the object as say
out.write(m_pRead, BytesToRead);
where "m_pRead" is a pointer to the beginning of the buffer & "BytesToRead" is the no:of bytes to read.But Iam not getting the expected result in the return file.
But when I store the same thing in a list & iterate the list to a console output, Iam getting the desired result.
so why Iam not able to get the result when Iam reading the object as bytes
Thanks in advance