@FunctionalInterface public interface ShortBlockConsumer
ShortBlockConsumer
is used to send short blocks (arrays) in a
unified way.Modifier and Type | Method and Description |
---|---|
default void |
writeDatagrams(short[] aDatagrams)
Writes (sends) a short block.
|
void |
writeDatagrams(short[] aDatagrams,
int aOffset,
int aLength)
Writes (sends) a short block.
|
default void writeDatagrams(short[] aDatagrams) throws org.refcodes.component.OpenException
aDatagrams
- The short to be pushed.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.void writeDatagrams(short[] aDatagrams, int aOffset, int aLength) throws org.refcodes.component.OpenException
aDatagrams
- The short to be pushed.aOffset
- The offset from which to take the data.aLength
- The number of elements to push starting at the given
offset.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2018. All rights reserved.