edit Range
abstract fun editRange( data: ByteArray, start: Int, end: Int, timestamp: Long = System.currentTimeMillis(), originator: UUID): TracedAction
Content copied to clipboard
Insert the ByteArray data into the file at the specified location. This should remove existing data in the file in this range and replace it with the provided data. This should preserve all data outside of this range.
Return
The TracedAction that preserves this edit and how to reverse it.
Parameters
data
The ByteArray data to add to this AvailFile.
start
The location in the file to inserting/overwriting the data, exclusive.
end
The location in the file to stop overwriting. All data after this point should be preserved.
timestamp
The time in milliseconds since the Unix Epoch UTC the update occurred.
originator
The AvailClient.id of the session that originated the change.