Class BytePackable

java.lang.Object
org.photonvision.vision.pipeline.result.BytePackable

public abstract class BytePackable extends Object
  • 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)