/////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Writes data into the underlying database blob. /// </summary> /// <param name="buffer"> /// This array contains the new values for the specified portion of /// the underlying database blob. /// </param> /// <param name="count"> /// The number of bytes to write. /// </param> /// <param name="offset"> /// The byte offset, relative to the start of the underlying /// database blob, where the write operation will begin. /// </param> public void Write( byte[] buffer, int count, int offset ) { CheckDisposed(); CheckOpen(); VerifyParameters(buffer, count, offset); SQLiteErrorCode rc = UnsafeNativeMethods.sqlite3_blob_write( _sqlite_blob, buffer, count, offset); if (rc != SQLiteErrorCode.Ok) { throw new SQLiteException(rc, null); } }