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[]
buffer
private static byte[]
emptyBuffer
int
start
-
Constructor Summary
Constructors Modifier Constructor Description private
Pointer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Pointer
create(byte[] buf, int start)
static Pointer
create(java.lang.String buf)
static Pointer
empty()
void
memcpy(byte[] toBuffer, int toIndex, int len)
void
memcpy(Pointer to, int len)
static Pointer
nullPointer()
Pointer
withStart(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)
-
-