Uses of Class
org.refcodes.serial.LengthSegmentDecoratorSegment
-
Uses of LengthSegmentDecoratorSegment in org.refcodes.serial
Modifier and TypeMethodDescriptionstatic <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, int aLengthWidth) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, int aLengthWidth, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and with the given number of bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, org.refcodes.numerical.Endianess aEndianess) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length and the providedEndianess
representation of the decoratee's length.static <DECORATEE extends Segment>
LengthSegmentDecoratorSegment<DECORATEE>SerialSugar.lengthSegment
(DECORATEE aSegment, TransmissionMetrics aTransmissionMetrics) Constructs aLengthSegmentDecoratorSegment
with the given decoratee and a width ofTransmissionMetrics.DEFAULT_LENGTH_WIDTH
bytes used to specify the decoratee's length aTransmissionMetrics.DEFAULT_ENDIANESS
endian representation of the decoratee's length.