@Override
    public void write(final int address, final byte[] data, final int offset, final int size) throws IOException {
        getBus().writeBytes(this, address, size, offset, data);
    }
@ Override public void write ( final int address , final byte [ ] data , final int offset , final int size ) throws IOException { getBus ( ) . writeBytes ( this , address , size , offset , data ) ; }
This method writes several bytes to the i2c device from given buffer at given offset.

@param address local address in the i2c device
@param data buffer of data to be written to the i2c device in one go
@param offset offset in buffer
@param size number of bytes to be written

@throws IOException thrown in case byte cannot be written to the i2c device or i2c bus