Class Slice

java.lang.Object
com.jsoniter.spi.Slice

public class Slice extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte[]
     
    private int
     
    private int
     
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Slice(byte[] data, int head, int tail)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final byte
    at(int pos)
     
    final byte[]
     
    final boolean
     
    final int
     
    final int
     
    final int
    len()
     
    static Slice
    make(String str)
     
    void
    reset(byte[] data, int head, int tail)
     
    final int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • data

      private byte[] data
    • tail

      private int tail
    • hash

      private int hash
  • Constructor Details

    • Slice

      public Slice(byte[] data, int head, int tail)
  • Method Details

    • reset

      public void reset(byte[] data, int head, int tail)
    • at

      public final byte at(int pos)
    • len

      public final int len()
    • data

      public final byte[] data()
    • head

      public final int head()
    • tail

      public final int tail()
    • make

      public static Slice make(String str)
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object