Data

actual class Data(source)

Bytes on the platform: a ByteArray on Android and the JVM, an NSData on Apple platforms, a Uint8Array on JS. Use toData to create one from a ByteArray in common code.

actual class Data(source)

Bytes on the platform: a ByteArray on Android and the JVM, an NSData on Apple platforms, a Uint8Array on JS. Use toData to create one from a ByteArray in common code.

expect class Data(source)

Bytes on the platform: a ByteArray on Android and the JVM, an NSData on Apple platforms, a Uint8Array on JS. Use toData to create one from a ByteArray in common code.

actual class Data(source)

Bytes on the platform: a ByteArray on Android and the JVM, an NSData on Apple platforms, a Uint8Array on JS. Use toData to create one from a ByteArray in common code.

actual class Data(source)

Bytes on the platform: a ByteArray on Android and the JVM, an NSData on Apple platforms, a Uint8Array on JS. Use toData to create one from a ByteArray in common code.

Constructors

Link copied to clipboard
constructor(data: ByteArray)
constructor(data: NSData)
constructor(data: Uint8Array)
constructor(data: Uint8Array)

Properties

Link copied to clipboard
val data: NSData
val data: Uint8Array
val data: Uint8Array

Functions

Link copied to clipboard
actual fun Data.toByteArray(): ByteArray

Returns a new byte array holding a copy of this Data, e.g. from StorageReference.getData.

actual fun Data.toByteArray(): ByteArray

Returns a new byte array holding a copy of this Data, e.g. from StorageReference.getData.

expect fun Data.toByteArray(): ByteArray

Returns a new byte array holding a copy of this Data, e.g. from StorageReference.getData.

actual fun Data.toByteArray(): ByteArray

Returns a new byte array holding a copy of this Data, e.g. from StorageReference.getData.

actual fun Data.toByteArray(): ByteArray

Returns a new byte array holding a copy of this Data, e.g. from StorageReference.getData.