About write a UByteArray to the file

Note that toByteArray copies the content, whereas asByteArray provides the view to the same content as an array of signed bytes.

1 Like