Package io.deephaven.base.array
Class FastByteArray
java.lang.Object
io.deephaven.base.array.FastByteArray
- All Implemented Interfaces:
Copyable<FastByteArray>
,SafeCloneable<FastByteArray>
,Externalizable
,Serializable
,Cloneable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(byte t) void
add
(byte[] t, int startIndex, int len) void
clone()
void
copyValues
(FastByteArray other) boolean
void
fullReset
(byte resetValue) int
byte[]
void
normalReset
(byte resetValue) void
void
void
removeThisIndex
(int index) toString()
toStringXml
(String pre) void
-
Constructor Details
-
FastByteArray
public FastByteArray() -
FastByteArray
public FastByteArray(int initialSize) -
FastByteArray
public FastByteArray(byte[] initValues)
-
-
Method Details
-
add
public void add(byte t) -
add
public void add(byte[] t, int startIndex, int len) -
quickReset
public void quickReset() -
normalReset
public void normalReset(byte resetValue) -
fullReset
public void fullReset(byte resetValue) -
arrayReset
public void arrayReset() -
getLength
public int getLength() -
getUnsafeArray
public byte[] getUnsafeArray() -
removeThisIndex
public void removeThisIndex(int index) -
copyValues
- Specified by:
copyValues
in interfaceCopyable<FastByteArray>
-
clone
-
safeClone
- Specified by:
safeClone
in interfaceSafeCloneable<FastByteArray>
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
toString
-
toStringXml
-
equals
-