scoop:scoop.asyncio:0.1.0
src/native_file.scoop
Selected production source · src/native_file.scoop
1
package scoop.asyncio3
import scoop.platform.native.NativeFileMetadata5
@Extern(name = "scoop_io_file_open")6
internal fun nativeFileOpen(loop: Ptr<Unit>, id: Long, path: Ptr<Byte>, flags: Int, mode: Int): Int8
@Extern(name = "scoop_io_file_transfer")9
internal fun nativeFileTransfer(10
file: Ptr<Unit>,11
id: Long,12
bytes: Ptr<Byte>?,13
count: Long,14
writing: Boolean15
): Int17
@Extern(name = "scoop_io_file_metadata")18
internal fun nativeFileMetadata(file: Ptr<Unit>, id: Long): Int20
@Extern(name = "scoop_io_file_seek")21
internal fun nativeFileSeek(file: Ptr<Unit>, id: Long, offset: Long, current: Boolean): Int23
@Extern(name = "scoop_io_file_truncate")24
internal fun nativeFileTruncate(file: Ptr<Unit>, id: Long, size: Long): Int26
@Extern(name = "scoop_io_file_sync")27
internal fun nativeFileSync(file: Ptr<Unit>, id: Long, dataOnly: Boolean): Int29
@Extern(name = "scoop_io_file_close")30
internal fun nativeFileClose(file: Ptr<Unit>, id: Long): Int32
@Extern(name = "scoop_io_path_metadata")33
internal fun nativePathMetadata(loop: Ptr<Unit>, id: Long, path: Ptr<Byte>, follow: Boolean): Int35
@Extern(name = "scoop_io_metadata_take")36
internal fun nativeTakeMetadata(pointer: Ptr<Unit>): NativeFileMetadata