Class BinVal.Helper

java.lang.Object
org.kink_lang.kink.BinVal.Helper
Enclosing class:
BinVal

public static class BinVal.Helper extends Object
The helper for bin vals.
See Also:
  • Method Details

    • of

      public BinVal of(byte[] bytes)
      Returns a bin val, copying the bytes.
      Parameters:
      bytes - the bytes.
      Returns:
      a bin val, copying the bytes.
    • of

      public BinVal of(byte[] bytes, int from, int to)
      Returns a bin val, copying the bytes inclusively from from, exclusively to to.
      Parameters:
      bytes - the bytes.
      from - the inclusive start index in bytes.
      to - the exclusive end index in bytes.
      Returns:
      a bin val, copying the bytes.
      Throws:
      IndexOutOfBoundsException - if from or to are out of the range of bytes.
      IllegalArgumentException - if from is larger than to.