Class VectorStruct<R extends Num>
java.lang.Object
org.wpilib.math.linalg.struct.VectorStruct<R>
-
Field Summary
Fields inherited from interface Struct
BOOL_SIZE, DOUBLE_SIZE, FLOAT_SIZE, INT16_SIZE, INT32_SIZE, INT64_SIZE, INT8_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the schema.intgetSize()Gets the serialized size (in bytes).Gets the Class object for the stored value.Gets the type name (e.g.voidpack(ByteBuffer bb, Vector<R> value) Puts object contents to a ByteBuffer starting at the current position.unpack(ByteBuffer bb) Deserializes an object from a raw struct serialized ByteBuffer starting at the current position.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Struct
clone, getNested, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
VectorStruct
-
-
Method Details
-
getTypeClass
-
getTypeName
-
getSize
-
getSchema
-
unpack
Description copied from interface:StructDeserializes an object from a raw struct serialized ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed). -
pack
Description copied from interface:StructPuts object contents to a ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed).
-