Class ByteString.TrSubString

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
ByteString.SubString
Enclosing class:
ByteString

public static class ByteString.TrSubString extends ByteString.Concrete
A ByteString implementation which which is zero based in the underlying byte array but whose length is possibly less than the underlying byte array. "Truncated SubString of ByteString".
See Also:
  • Field Details

    • length_

      protected final int length_
      _more_
  • Constructor Details

    • TrSubString

      public TrSubString(byte[] ba, boolean share, int length)
      _more_
      Parameters:
      ba -
      share -
      length -
    • TrSubString

      public TrSubString(ByteString.Concrete bs, int length)
      _more_
      Parameters:
      bs -
      length -
  • Method Details

    • getLength

      public int getLength()
      _more_
      Overrides:
      getLength in class ByteString.Concrete
      Returns:
      _more_
    • byteAt

      public byte byteAt(int ii)
      _more_
      Overrides:
      byteAt in class ByteString.Concrete
      Parameters:
      ii -
      Returns:
      _more_
    • copyBytes

      public byte[] copyBytes(int srcpos, byte[] dst, int dstpos, int nbytes)
      _more_
      Overrides:
      copyBytes in class ByteString.Concrete
      Parameters:
      srcpos -
      dst -
      dstpos -
      nbytes -
      Returns:
      _more_
    • toArray

      public byte[] toArray()
      _more_
      Overrides:
      toArray in class ByteString.Concrete
      Returns:
      _more_