PackageFile

data class PackageFile(val path: String, val content: () -> ByteArray)

A file belonging to a package.

Parameters

path

path of the file relative to the package root, with / separators, e.g. assets/logo.png

content

loader of the file's bytes. Invoking it may perform network access

Throws

if path is empty, absolute, uses backslashes or contains a .. segment

Constructors

Link copied to clipboard
constructor(path: String, content: () -> ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val content: () -> ByteArray
Link copied to clipboard