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 -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.util.struct.Struct<?>[]intgetSize()voidpack(ByteBuffer bb, T value) unpack(ByteBuffer bb) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSizein interfaceedu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
-
getSchema
- Specified by:
getSchemain interfaceedu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
-
getNested
public edu.wpi.first.util.struct.Struct<?>[] getNested()- Specified by:
getNestedin interfaceedu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
-
unpack
- Specified by:
unpackin interfaceedu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
-
pack
- Specified by:
packin interfaceedu.wpi.first.util.struct.Struct<T extends com.revrobotics.spark.SparkBase>
-