Scoop API

scoop:scoop.asyncio:0.1.0

src/native_file.scoop

Selected production source · src/native_file.scoop

1package scoop.asyncio
3import scoop.platform.native.NativeFileMetadata
5@Extern(name = "scoop_io_file_open")
6internal fun nativeFileOpen(loop: Ptr<Unit>, id: Long, path: Ptr<Byte>, flags: Int, mode: Int): Int
8@Extern(name = "scoop_io_file_transfer")
9internal fun nativeFileTransfer(
10 file: Ptr<Unit>,
11 id: Long,
12 bytes: Ptr<Byte>?,
13 count: Long,
14 writing: Boolean
15): Int
17@Extern(name = "scoop_io_file_metadata")
18internal fun nativeFileMetadata(file: Ptr<Unit>, id: Long): Int
20@Extern(name = "scoop_io_file_seek")
21internal fun nativeFileSeek(file: Ptr<Unit>, id: Long, offset: Long, current: Boolean): Int
23@Extern(name = "scoop_io_file_truncate")
24internal fun nativeFileTruncate(file: Ptr<Unit>, id: Long, size: Long): Int
26@Extern(name = "scoop_io_file_sync")
27internal fun nativeFileSync(file: Ptr<Unit>, id: Long, dataOnly: Boolean): Int
29@Extern(name = "scoop_io_file_close")
30internal fun nativeFileClose(file: Ptr<Unit>, id: Long): Int
32@Extern(name = "scoop_io_path_metadata")
33internal fun nativePathMetadata(loop: Ptr<Unit>, id: Long, path: Ptr<Byte>, follow: Boolean): Int
35@Extern(name = "scoop_io_metadata_take")
36internal fun nativeTakeMetadata(pointer: Ptr<Unit>): NativeFileMetadata