public static void consumeBlockAllocated(Pipe<BlockManagerResponseSchema> input) { ByteBuffer fieldRoute = PipeReader.readBytes(input,MSG_BLOCKALLOCATED_6_FIELD_ROUTE_14,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_BLOCKALLOCATED_6_FIELD_ROUTE_14))); } public static void consumeBlockAllocatedFailure(Pipe<BlockManagerResponseSchema> input) {
@Override public final Object read(Object[] args) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } return null; } };
public static void consumeBlockMount(Pipe<BlockManagerRequestSchema> input) { ByteBuffer fieldRoute = PipeReader.readBytes(input,MSG_BLOCKMOUNT_5_FIELD_ROUTE_14,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_BLOCKMOUNT_5_FIELD_ROUTE_14))); } public static void consumeBlockRequest(Pipe<BlockManagerRequestSchema> input) {
@Override public final Object read(Object[] args) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } return null; } };
public static void consumeSubRead(Pipe<BlockManagerResponseSchema> input) { ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_SUBREAD_4_FIELD_PAYLOAD_13,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_SUBREAD_4_FIELD_PAYLOAD_13))); } public static void consumeReadHeader(Pipe<BlockManagerResponseSchema> input) {
@Override public final Object read(Object[] args) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } return null; } };
public static void consumeBlockRelease(Pipe<BlockManagerRequestSchema> input) { ByteBuffer fieldRoute = PipeReader.readBytes(input,MSG_BLOCKRELEASE_7_FIELD_ROUTE_14,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_BLOCKRELEASE_7_FIELD_ROUTE_14))); }
@Override public final Object read(Object[] args) { if (PipeReader.readBytesLength(pipe,fieldLoc)>0) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } } return null; } };
@Override public final Object read(Object[] args) { if (PipeReader.readBytesLength(pipe,fieldLoc)>0) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } } return null; } };
@Override public final Object read(Object[] args) { if (PipeReader.readBytesLength(pipe,fieldLoc)>0) { switch (args.length) { case 1: return PipeReader.readBytes(pipe, fieldLoc, (ByteBuffer)args[0]); case 2: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue()); case 3: return PipeReader.readBytes(pipe, fieldLoc, (byte[])args[0],((Number)args[1]).intValue(),((Number)args[2]).intValue()); } } return null; } };
/** * * @param input Pipe arg used for PipeReader.readUTF8 and PipeReader.readBytes */ public static void consumePublish(Pipe<MessageSubscription> input) { StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_103_FIELD_TOPIC_1,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_TOPIC_1))); ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_PUBLISH_103_FIELD_PAYLOAD_3,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_PAYLOAD_3))); }
/** * * @param input Pipe arg used in PipeReader.readUTF8 and PipeReader.readBytes */ public static void consumePublish(Pipe<IngressMessages> input) { StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_103_FIELD_TOPIC_1,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_TOPIC_1))); ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_PUBLISH_103_FIELD_PAYLOAD_3,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_PAYLOAD_3))); }
public static void consumeReadHeader(Pipe<BlockManagerResponseSchema> input) { long fieldId = PipeReader.readLong(input,MSG_READHEADER_8_FIELD_ID_11); ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_READHEADER_8_FIELD_PAYLOAD_13,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_READHEADER_8_FIELD_PAYLOAD_13))); } public static void consumeBlockMounted(Pipe<BlockManagerResponseSchema> input) {
public static void consumeSubWrite(Pipe<BlockManagerRequestSchema> input) { long fieldId = PipeReader.readLong(input,MSG_SUBWRITE_3_FIELD_ID_11); ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_SUBWRITE_3_FIELD_PAYLOAD_12,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_SUBWRITE_3_FIELD_PAYLOAD_12))); } public static void consumeSubRead(Pipe<BlockManagerRequestSchema> input) {
public static void consumeSubAllocated(Pipe<BlockManagerResponseSchema> input) { long fieldId = PipeReader.readLong(input,MSG_SUBALLOCATED_1_FIELD_ID_11); ByteBuffer fieldRoute = PipeReader.readBytes(input,MSG_SUBALLOCATED_1_FIELD_ROUTE_14,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_SUBALLOCATED_1_FIELD_ROUTE_14))); } public static void consumeSubAllocatedFailure(Pipe<BlockManagerResponseSchema> input) {
public static void consumeSubRelease(Pipe<BlockManagerRequestSchema> input) { long fieldId = PipeReader.readLong(input,MSG_SUBRELEASE_2_FIELD_ID_11); ByteBuffer fieldRoute = PipeReader.readBytes(input,MSG_SUBRELEASE_2_FIELD_ROUTE_14,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_SUBRELEASE_2_FIELD_ROUTE_14))); } public static void consumeSubWrite(Pipe<BlockManagerRequestSchema> input) {
public static void consumeConnect(Pipe<MQTTClientRequestSchema> input) { int fieldKeepAliveSec = PipeReader.readInt(input,MSG_CONNECT_1_FIELD_KEEPALIVESEC_28); int fieldFlags = PipeReader.readInt(input,MSG_CONNECT_1_FIELD_FLAGS_29); StringBuilder fieldClientId = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_CLIENTID_30,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_CLIENTID_30))); StringBuilder fieldWillTopic = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_WILLTOPIC_31,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_WILLTOPIC_31))); ByteBuffer fieldWillPayload = PipeReader.readBytes(input,MSG_CONNECT_1_FIELD_WILLPAYLOAD_32,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_WILLPAYLOAD_32))); StringBuilder fieldUser = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_USER_33,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_USER_33))); StringBuilder fieldPass = PipeReader.readUTF8(input,MSG_CONNECT_1_FIELD_PASS_34,new StringBuilder(PipeReader.readBytesLength(input,MSG_CONNECT_1_FIELD_PASS_34))); } public static void consumePublish(Pipe<MQTTClientRequestSchema> input) {
public static void consumePublish(Pipe<MQTTClientRequestSchema> input) { int fieldQOS = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_QOS_21); int fieldRetain = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_RETAIN_22); StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_3_FIELD_TOPIC_23,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_3_FIELD_TOPIC_23))); ByteBuffer fieldPayload = PipeReader.readBytes(input,MSG_PUBLISH_3_FIELD_PAYLOAD_25,ByteBuffer.allocate(PipeReader.readBytesLength(input,MSG_PUBLISH_3_FIELD_PAYLOAD_25))); } public static void consumeSubscribe(Pipe<MQTTClientRequestSchema> input) {
private void consumePublish(Pipe<MQTTServerToClientSchema> input) { long fieldTime = PipeReader.readLong(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_TIME_37); int fieldPacketId = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_PACKETID_20); int fieldQOS = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_QOS_21); int fieldRetain = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_RETAIN_22); int fieldDup = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_DUP_36); StringBuilder fieldTopic = PipeReader.readUTF8(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_TOPIC_23,new StringBuilder(PipeReader.readBytesLength(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_TOPIC_23))); ByteBuffer fieldPayload = PipeReader.readBytes(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_PAYLOAD_25,ByteBuffer.allocate(PipeReader.readBytesLength(input,MQTTServerToClientSchema.MSG_PUBLISH_3_FIELD_PAYLOAD_25))); }