Package com.reduxrobotics.frames
Interface ByteArrayFrame.ByteArrayToType<T>
- Enclosing class:
- ByteArrayFrame<T>
public static interface ByteArrayFrame.ByteArrayToType<T>
Functional interface for a function mapping a double data value to the final frame type.
For byte arrays this should probably ensure no references to the original array are present
(as they update)
-
Method Summary
-
Method Details
-
convert
Converison function from byte[] to the type parameter.- Parameters:
data
- The byte array data. If preserved in an output object, it should be cloned first to avoid data getting overwritten on next update.- Returns:
- a new object.
-