Class FastPathViews.StringByteView

java.lang.Object
dev.relism.flash.routing.routers.fastpathrouter.FastPathViews.StringByteView
All Implemented Interfaces:
ArrayBackedByteView, dev.relism.fpr.core.ByteView
Enclosing class:
FastPathViews

public static class FastPathViews.StringByteView extends Object implements ArrayBackedByteView
  • Constructor Details

    • StringByteView

      public StringByteView(String str)
  • Method Details

    • length

      public int length()
      Specified by:
      length in interface dev.relism.fpr.core.ByteView
    • byteAt

      public byte byteAt(int index)
      Specified by:
      byteAt in interface dev.relism.fpr.core.ByteView
    • array

      public byte[] array()
      Description copied from interface: ArrayBackedByteView
      The backing array. Bytes [offset(), offset() + length()) belong to this view.
      Specified by:
      array in interface ArrayBackedByteView
    • offset

      public int offset()
      Description copied from interface: ArrayBackedByteView
      Offset of this view's first byte within ArrayBackedByteView.array().
      Specified by:
      offset in interface ArrayBackedByteView
    • supportsLong

      public boolean supportsLong()
      Specified by:
      supportsLong in interface dev.relism.fpr.core.ByteView
    • longAt

      public long longAt(int index)
      Specified by:
      longAt in interface dev.relism.fpr.core.ByteView