Class SparkBaseStruct<T extends com.revrobotics.spark.SparkBase>

java.lang.Object
org.team1126.lib.logging.revlib.structs.SparkBaseStruct<T>
All Implemented Interfaces:
edu.wpi.first.util.struct.Struct<T>

public abstract class SparkBaseStruct<T extends com.revrobotics.spark.SparkBase> extends Object implements edu.wpi.first.util.struct.Struct<T>
  • Field Summary

    Fields inherited from interface edu.wpi.first.util.struct.Struct

    kSizeBool, kSizeDouble, kSizeFloat, kSizeInt16, kSizeInt32, kSizeInt64, kSizeInt8
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.util.struct.Struct<?>[]
     
     
    int
     
    void
    pack(ByteBuffer bb, T value)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface edu.wpi.first.util.struct.Struct

    clone, getTypeClass, getTypeName, getTypeString, isCloneable, isImmutable, unpackInto
  • Constructor Details

    • SparkBaseStruct

      public SparkBaseStruct()
  • Method Details

    • getSize

      public int getSize()
      Specified by:
      getSize in interface edu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
    • getSchema

      public String getSchema()
      Specified by:
      getSchema in interface edu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
    • getNested

      public edu.wpi.first.util.struct.Struct<?>[] getNested()
      Specified by:
      getNested in interface edu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
    • unpack

      public T unpack(ByteBuffer bb)
      Specified by:
      unpack in interface edu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
    • pack

      public void pack(ByteBuffer bb, T value)
      Specified by:
      pack in interface edu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>