Scoop API

scoop:scoop.core:0.1.0

includeBytes

function includeBytes

source · line 23
public
@Intrinsic("include_bytes")
public fun includeBytes(path: String): Array<Byte>

Embeds the exact bytes of a file as an immutable Array<Byte>. The constant path is relative to this call's source directory. Both the path and its resolved symlink target must stay inside the Cone directory. The file is read at compile time. This intrinsic has no function reference.