ownedBytesFrom

expect fun ownedBytesFrom(bytes: PlatformBuffer): OwnedBytesHandle

Construct from a consumer-owned PlatformBuffer. The platform actual takes ownership of bytes and is responsible for its lifetime.

Named ownedBytesFrom rather than OwnedBytesHandle to avoid a constructor / top-level-fun ambiguity in the actuals.

actual fun ownedBytesFrom(bytes: PlatformBuffer): OwnedBytesHandle
actual fun ownedBytesFrom(bytes: PlatformBuffer): OwnedBytesHandle
actual fun ownedBytesFrom(bytes: PlatformBuffer): OwnedBytesHandle
actual fun ownedBytesFrom(bytes: PlatformBuffer): OwnedBytesHandle