use of sugar.free.sightparser.pipeline.ByteBuf in project SightRemote by TebbeUbben.
the class ReadConfigurationBlockMessage method getData.
@Override
protected byte[] getData() throws Exception {
ByteBuf byteBuf = new ByteBuf(2);
byteBuf.putShort(configurationBlockID);
return byteBuf.getBytes();
}
use of sugar.free.sightparser.pipeline.ByteBuf in project SightRemote by TebbeUbben.
the class WriteConfigurationBlockMessage method getData.
@Override
protected byte[] getData() throws Exception {
byte[] blockData = configurationBlock.getData();
ByteBuf byteBuf = new ByteBuf(4 + blockData.length);
byteBuf.putShort(configurationBlock.getID());
byteBuf.putShort(restrictionLevel.getValue());
byteBuf.putBytes(blockData);
return byteBuf.getBytes();
}
use of sugar.free.sightparser.pipeline.ByteBuf in project SightRemote by TebbeUbben.
the class Cryptograph method processHeader.
private static byte[] processHeader(byte[] header) {
ByteBuf byteBuf;
byteBuf = new ByteBuf(2 + header.length);
byteBuf.putShort((short) header.length);
byteBuf.putBytes(header);
return byteBuf.getBytes();
}
use of sugar.free.sightparser.pipeline.ByteBuf in project SightRemote by TebbeUbben.
the class VerifyConfirmRequest method getData.
@Override
protected byte[] getData() {
ByteBuf byteBuf = new ByteBuf(2);
byteBuf.putShort(pairingStatus.getValue());
return byteBuf.getBytes();
}
use of sugar.free.sightparser.pipeline.ByteBuf in project SightRemote by TebbeUbben.
the class CustomTBRBlock method getData.
@Override
public byte[] getData() {
ByteBuf byteBuf = new ByteBuf(6);
byteBuf.putUInt16LE(amount);
byteBuf.putUInt16LE(duration);
byteBuf.putBoolean(configured);
return byteBuf.getBytes();
}
Aggregations