Class BinHelper

java.lang.Object
org.kink_lang.kink.BinHelper

public class BinHelper extends Object
The helper for bin vals.
  • 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, copyin 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.