Package org.yecht
Class Pointer
- java.lang.Object
-
- org.yecht.Pointer
-
public class Pointer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description byte[]bufferprivate static byte[]emptyBufferintstart
-
Constructor Summary
Constructors Modifier Constructor Description privatePointer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Pointercreate(byte[] buf, int start)static Pointercreate(java.lang.String buf)static Pointerempty()voidmemcpy(byte[] toBuffer, int toIndex, int len)voidmemcpy(Pointer to, int len)static PointernullPointer()PointerwithStart(int start)
-
-
-
Method Detail
-
empty
public static Pointer empty()
-
nullPointer
public static Pointer nullPointer()
-
create
public static Pointer create(byte[] buf, int start)
-
create
public static Pointer create(java.lang.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)
-
-