copy

fun copy(sequence: Long): Swatch

Creates a copy with a different sequence, sharing the same backing array. Equivalent to the data-class copy(sequence = …).


fun copy(sender: PeerId?): Swatch

Creates a copy with a different sender, sharing the same backing array.