Class BytePackable
java.lang.Object
org.photonvision.vision.pipeline.result.BytePackable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
bufferData
(boolean src, byte[] dest) protected void
bufferData
(byte[] src, byte[] dest) protected void
bufferData
(byte src, byte[] dest) protected void
bufferData
(double src, byte[] dest) protected void
bufferData
(int src, byte[] dest) abstract void
fromByteArray
(byte[] src) int
void
abstract byte[]
protected byte[]
toBytes
(boolean value) protected byte[]
toBytes
(double value) protected byte[]
toBytes
(int value) protected boolean
unbufferBoolean
(byte[] src) protected byte
unbufferByte
(byte[] src) protected byte[]
unbufferBytes
(byte[] src, int len) protected double
unbufferDouble
(byte[] src) protected int
unbufferInt
(byte[] src)
-
Field Details
-
bufferPosition
protected int bufferPosition
-
-
Constructor Details
-
BytePackable
public BytePackable()
-
-
Method Details
-
toByteArray
public abstract byte[] toByteArray() -
fromByteArray
public abstract void fromByteArray(byte[] src) -
getBufferPosition
public int getBufferPosition() -
resetBufferPosition
public void resetBufferPosition() -
bufferData
protected void bufferData(byte[] src, byte[] dest) -
bufferData
protected void bufferData(byte src, byte[] dest) -
bufferData
protected void bufferData(int src, byte[] dest) -
bufferData
protected void bufferData(double src, byte[] dest) -
bufferData
protected void bufferData(boolean src, byte[] dest) -
unbufferBoolean
protected boolean unbufferBoolean(byte[] src) -
unbufferByte
protected byte unbufferByte(byte[] src) -
unbufferBytes
protected byte[] unbufferBytes(byte[] src, int len) -
unbufferInt
protected int unbufferInt(byte[] src) -
unbufferDouble
protected double unbufferDouble(byte[] src) -
toBytes
protected byte[] toBytes(double value) -
toBytes
protected byte[] toBytes(int value) -
toBytes
protected byte[] toBytes(boolean value)
-