Class AssetPack

java.lang.Object
ke.ric.renderer.api.AssetPack

public final class AssetPack extends Object
Caller-supplied asset archive bytes and their diagnostic identifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssetPack(String id, byte[] bytes)
    Creates a pack, defensively copying its archive bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns a defensive copy of the archive bytes.
    id()
    Returns the caller-defined identifier used in diagnostics.
    int
    Returns the archive size in bytes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetPack

      public AssetPack(String id, byte[] bytes)
      Creates a pack, defensively copying its archive bytes.
  • Method Details

    • id

      public String id()
      Returns the caller-defined identifier used in diagnostics.
    • size

      public int size()
      Returns the archive size in bytes.
    • bytes

      public byte[] bytes()
      Returns a defensive copy of the archive bytes.