Package org.yecht

Class Pointer

java.lang.Object
org.yecht.Pointer

public class Pointer extends Object
  • Field Details

    • buffer

      public byte[] buffer
    • start

      public int start
    • emptyBuffer

      private static final byte[] emptyBuffer
  • Constructor Details

    • Pointer

      private Pointer()
  • Method Details

    • empty

      public static Pointer empty()
    • nullPointer

      public static Pointer nullPointer()
    • create

      public static Pointer create(byte[] buf, int start)
    • create

      public static Pointer create(String buf)
    • memcpy

      public void memcpy(byte[] toBuffer, int toIndex, int len)
    • memcpy

      public void memcpy(Pointer to, int len)
    • withStart

      public Pointer withStart(int start)