scoop:scoop.platform:0.1.0
platform/posix/files.scoop
Selected production source · platform/posix/files.scoop
1
package scoop.platform.fs3
import scoop.platform.system.OsString5
@Unsafe6
internal fun <R> Path.withPlatformPath(block: (Ptr<Byte>) -> R): R = withNativePath(block)8
@Unsafe9
internal fun <R> OsString.withPlatformString(block: (Ptr<Byte>) -> R): R = withNativeString(block)11
@Unsafe12
internal fun copyPlatformString(pointer: Ptr<Byte>, length: Long): OsString =13
OsString.fromByteArray(14
Array<Byte>(length) {15
index -> @Unsafe16
{17
return@Array pointer.load(index)18
}19
}20
)