The ILockBytes interface contains the following methods:
ReadAt reads a specified number of bytes starting at a specified offset from the beginning of the byte array.
WriteAt writes a specified number of bytes to a specified location in the byte array.
Flush ensures that any internal buffers maintained by the byte array object are written out to the backing storage.
SetSize changes the size of the byte array.
LockRegion restricts access to a specified range of bytes in the byte array.
UnlockRegion removes the access restriction on a range of bytes previously restricted with ILockBytes.LockRegion.
Stat retrieves a com.ms.com.STATSTG structure for this byte array object.