core-ktx / androidx.util / android.util.AtomicFile / readBytes

readBytes

inline fun AtomicFile.readBytes(): ByteArray

Gets the entire content of this file as a byte array.

This method is not recommended on huge files. It has an internal limitation of 2 GB file size.