MaterialPackage

A compiled material (filamat's Package): the bytes Material.Builder.payload loads. Named MaterialPackage, as on Android, so it doesn't shadow java.lang.Package on the JVM.

Check isValid before use: MaterialBuilder.build returns an invalid package when compilation fails.

See also

Constructors

Link copied to clipboard
constructor(size: Int)

size zeroed bytes.

constructor(src: ByteArray, size: Int = src.size)

A copy of the first size bytes of src.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The package's bytes.

Link copied to clipboard

False when compilation failed.

Link copied to clipboard
val size: Int

Byte count of data.