ArrayRef.Allocator<T>
Constructor and Description |
---|
ByteArrayRef() |
ByteArrayRef(byte[] src) |
ByteArrayRef(byte[] src,
boolean copy) |
ByteArrayRef(byte[] src,
int off,
int len) |
ByteArrayRef(byte[] src,
int off,
int len,
boolean copy) |
ByteArrayRef(ByteArrayRef src) |
ByteArrayRef(ByteArrayRef src,
boolean copy) |
ByteArrayRef(ByteArrayRef src,
int off,
int len,
boolean copy) |
ByteArrayRef(int cap) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
allocBuffer(int cap) |
protected static int |
arraySize(byte[] buf) |
int |
byteAt(int idx) |
boolean |
canEqual(Object obj) |
int |
count(byte[] seq) |
int |
count(int val) |
int |
count(int off,
byte[] seq,
int soff,
int slen) |
int |
count(int off,
int val) |
boolean |
equals(Object obj)
Note that since this class is basically a glorified pointer, the Equals method merely checks that they both point to
the same memory location.
|
boolean |
equalsBytes(byte[] arr) |
boolean |
equalsBytes(byte[] barr,
int boff,
int blen) |
int |
hashCode() |
void |
setByte(int idx,
int val) |
protected int |
totalBufferSize(byte[] buf) |
advance, buffer, capacity, clear, copy, copyIn, copyIn, copyOut, copyOut, ensureCapacity, ensureSpareCapacity, getBuffer, getOffset, getOffset, getSize, incrementSize, limit, offset, offset, set, set, set, set, set, setSize, size, spareCapacity, toArray, toArray, toArray, toArray, toString, totalBufferSize
public ByteArrayRef()
public ByteArrayRef(int cap)
public ByteArrayRef(byte[] src)
public ByteArrayRef(byte[] src, boolean copy)
public ByteArrayRef(byte[] src, int off, int len)
public ByteArrayRef(ByteArrayRef src)
public ByteArrayRef(ByteArrayRef src, boolean copy)
public ByteArrayRef(ByteArrayRef src, int off, int len, boolean copy)
public ByteArrayRef(byte[] src, int off, int len, boolean copy)
public final int byteAt(int idx)
public final void setByte(int idx, int val)
public boolean equalsBytes(byte[] arr)
public int count(int val)
public int count(int off, int val)
public int count(byte[] seq)
public int count(int off, byte[] seq, int soff, int slen)
protected int totalBufferSize(byte[] buf)
totalBufferSize
in class ArrayRef<byte[]>
protected byte[] allocBuffer(int cap)
allocBuffer
in class ArrayRef<byte[]>
public boolean equals(Object obj)
ArrayRef
public boolean equalsBytes(byte[] barr, int boff, int blen)
protected static int arraySize(byte[] buf)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.