scodec-bits icon indicating copy to clipboard operation
scodec-bits copied to clipboard

Zero-copy toArray

Open pm47 opened this issue 6 years ago • 0 comments

Is there any way we could not do an array copy when the underlying data is already an array?

val array: Array[Byte]
ByteVector.view(array).toArray

pm47 avatar Feb 22 '19 10:02 pm47