This method of the ILockBytes interface reads a specified number of bytes starting at a specified offset from the beginning of the byte array object.
public int ReadAt(long ulOffset, byte buf[], int off, int len);
S_OK -- indicates that the specified number of bytes were read, or the maximum number of bytes were read up to the end of the byte array.
E_FAIL -- data could not be read from the byte array.
E_PENDING -- asynchronous storage only: part or all the data to be read is currently unavailable.
STG_E_ACCESSDENIED -- the caller does not have permission to access the byte array.
STG_E_READFAULT -- the number of bytes to be read does not equal the number of bytes that were actually read.
ulOffset | Specifies the starting row from the beginning of the database. |
buf | The buffer that the bytes are read into. |
off | The offset in the byte array to begin reading from. |
len | The number of bytes to read. |