public static void consumeColorComponentMessage(Pipe<JPGSchema> input) { int fieldcomponentID = PipeReader.readInt(input,MSG_COLORCOMPONENTMESSAGE_2_FIELD_COMPONENTID_102); int fieldhorizontalSamplingFactor = PipeReader.readInt(input,MSG_COLORCOMPONENTMESSAGE_2_FIELD_HORIZONTALSAMPLINGFACTOR_202); int fieldverticalSamplingFactor = PipeReader.readInt(input,MSG_COLORCOMPONENTMESSAGE_2_FIELD_VERTICALSAMPLINGFACTOR_302); int fieldquantizationTableID = PipeReader.readInt(input,MSG_COLORCOMPONENTMESSAGE_2_FIELD_QUANTIZATIONTABLEID_402); } public static void consumeQuantizationTableMessage(Pipe<JPGSchema> input) {
public static void consumeCLOSEConnection(Pipe<ClientHTTPRequestSchema> input) { int fieldSession = PipeReader.readInt(input,MSG_CLOSECONNECTION_104_FIELD_SESSION_10); int fieldPort = PipeReader.readInt(input,MSG_CLOSECONNECTION_104_FIELD_PORT_1); int fieldHostId = PipeReader.readInt(input,MSG_CLOSECONNECTION_104_FIELD_HOSTID_2); long fieldConnectionId = PipeReader.readLong(input,MSG_CLOSECONNECTION_104_FIELD_CONNECTIONID_20); } public static void consumeHEAD(Pipe<ClientHTTPRequestSchema> input) {
@Override public final Object read(Object[] args) { int value = PipeReader.readInt(pipe, fieldLoc); return value==absent32 ? null : new Integer(value); } };
@Override public final Object read(Object[] args) { return new Integer(PipeReader.readInt(pipe, fieldLoc)); } };
private void consumeConnAck(Pipe<MQTTServerToClientSchema> input) { long fieldTime = PipeReader.readLong(input,MQTTServerToClientSchema.MSG_CONNACK_2_FIELD_TIME_37); int fieldFlag = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_CONNACK_2_FIELD_FLAG_35); int fieldReturnCode = PipeReader.readInt(input,MQTTServerToClientSchema.MSG_CONNACK_2_FIELD_RETURNCODE_24); }
public static void consumeHeaderMessage(Pipe<JPGSchema> input) { int fieldheight = PipeReader.readInt(input,MSG_HEADERMESSAGE_1_FIELD_HEIGHT_101); int fieldwidth = PipeReader.readInt(input,MSG_HEADERMESSAGE_1_FIELD_WIDTH_201); StringBuilder fieldfilename = PipeReader.readUTF8(input,MSG_HEADERMESSAGE_1_FIELD_FILENAME_301,new StringBuilder(PipeReader.readBytesLength(input,MSG_HEADERMESSAGE_1_FIELD_FILENAME_301))); int fieldfinal = PipeReader.readInt(input,MSG_HEADERMESSAGE_1_FIELD_FINAL_401); } public static void consumeColorComponentMessage(Pipe<JPGSchema> input) {
public static void consumeResponse(Pipe<NetResponseSchema> input) { long fieldConnectionId = PipeReader.readLong(input,MSG_RESPONSE_101_FIELD_CONNECTIONID_1); int fieldSessionId = PipeReader.readInt(input,MSG_RESPONSE_101_FIELD_SESSIONID_2); int fieldContextFlags = PipeReader.readInt(input,MSG_RESPONSE_101_FIELD_CONTEXTFLAGS_5); DataInputBlobReader<NetResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_RESPONSE_101_FIELD_PAYLOAD_3); } public static void consumeContinuation(Pipe<NetResponseSchema> input) {
public static void consumeToChannel(Pipe<ServerResponseSchema> input) { long fieldChannelId = PipeReader.readLong(input,MSG_TOCHANNEL_100_FIELD_CHANNELID_21); int fieldSequenceNo = PipeReader.readInt(input,MSG_TOCHANNEL_100_FIELD_SEQUENCENO_23); DataInputBlobReader<ServerResponseSchema> fieldPayload = PipeReader.inputStream(input, MSG_TOCHANNEL_100_FIELD_PAYLOAD_25); int fieldRequestContext = PipeReader.readInt(input,MSG_TOCHANNEL_100_FIELD_REQUESTCONTEXT_24); } public static void consumeToSubscription(Pipe<ServerResponseSchema> input) {
public static void consumePubAck(Pipe<MQTTServerToClientSchema> input) { long fieldTime = PipeReader.readLong(input,MSG_PUBACK_4_FIELD_TIME_37); int fieldPacketId = PipeReader.readInt(input,MSG_PUBACK_4_FIELD_PACKETID_20); } public static void consumePubRec(Pipe<MQTTServerToClientSchema> input) {
public static void consumePublish(Pipe<MQTTServerToClientSchema> input) { long fieldTime = PipeReader.readLong(input,MSG_PUBLISH_3_FIELD_TIME_37); int fieldQOS = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_QOS_21); int fieldRetain = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_RETAIN_22); int fieldDup = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_DUP_36); StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_3_FIELD_TOPIC_23,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_3_FIELD_TOPIC_23))); int fieldPacketId = PipeReader.readInt(input,MSG_PUBLISH_3_FIELD_PACKETID_20); DataInputBlobReader<MQTTServerToClientSchema> fieldPayload = PipeReader.inputStream(input, MSG_PUBLISH_3_FIELD_PAYLOAD_25); } public static void consumeDisconnect(Pipe<MQTTServerToClientSchema> input) {
public static void consumeChunkedStreamAndInt(Pipe<TestDataSchema> input) { DataInputBlobReader<TestDataSchema> fieldByteArray = PipeReader.inputStream(input, MSG_CHUNKEDSTREAMANDINT_60_FIELD_BYTEARRAY_62); int fieldIntValue = PipeReader.readInt(input,MSG_CHUNKEDSTREAMANDINT_60_FIELD_INTVALUE_61); } public static void consumeChunkedStreamAndLong(Pipe<TestDataSchema> input) {
public static void consumeChunkedStreamAndInt(Pipe<TestDataSchema> input) { DataInputBlobReader<TestDataSchema> fieldByteArray = PipeReader.inputStream(input, MSG_CHUNKEDSTREAMANDINT_60_FIELD_BYTEARRAY_62); int fieldIntValue = PipeReader.readInt(input,MSG_CHUNKEDSTREAMANDINT_60_FIELD_INTVALUE_61); } public static void consumeChunkedStreamAndLong(Pipe<TestDataSchema> 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))); }
public static void consumeClosed(Pipe<NetResponseSchema> input) { long fieldConnectionId = PipeReader.readLong(input,MSG_CLOSED_10_FIELD_CONNECTIONID_1); int fieldSessionId = PipeReader.readInt(input,MSG_CLOSED_10_FIELD_SESSIONID_2); StringBuilder fieldHost = PipeReader.readUTF8(input,MSG_CLOSED_10_FIELD_HOST_4,new StringBuilder(PipeReader.readBytesLength(input,MSG_CLOSED_10_FIELD_HOST_4))); int fieldPort = PipeReader.readInt(input,MSG_CLOSED_10_FIELD_PORT_5); }
/** * Reads int bits from specified pipe and converts to float * @param pipe to be read * @param loc location of int bits to read * @return float bits converted from int */ public static float readIntBitsToFloat(Pipe pipe, int loc) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.IntegerSigned, TypeMask.IntegerSignedOptional, TypeMask.IntegerUnsigned, TypeMask.IntegerUnsignedOptional)): "Value found "+LOCUtil.typeAsString(loc); return Float.intBitsToFloat(readInt(pipe,loc)); }
/** * Reads int bits from specified pipe and converts to float * @param pipe to be read * @param loc location of int bits to read * @return float bits converted from int */ public static float readIntBitsToFloat(Pipe pipe, int loc) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.IntegerSigned, TypeMask.IntegerSignedOptional, TypeMask.IntegerUnsigned, TypeMask.IntegerUnsignedOptional)): "Value found "+LOCUtil.typeAsString(loc); return Float.intBitsToFloat(readInt(pipe,loc)); }
/** * * @param input Pipe arg used for PipeReader.readUTF8, PipeReader.readBytesLength and PipeReader.readInt */ public static void consumeSubscribe(Pipe<MessagePubSub> input) { StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_SUBSCRIBE_100_FIELD_TOPIC_1,new StringBuilder(PipeReader.readBytesLength(input,MSG_SUBSCRIBE_100_FIELD_TOPIC_1))); int fieldSubscriberIdentityHash = PipeReader.readInt(input,MSG_SUBSCRIBE_100_FIELD_SUBSCRIBERIDENTITYHASH_4); }
/** * * @param input Pipe arg used for PipeReader.readInt, PipeReader.readUTF8 and PipeReader.inputStream */ public static void consumePublish(Pipe<MessagePubSub> input) { int fieldQOS = PipeReader.readInt(input,MSG_PUBLISH_103_FIELD_QOS_5); StringBuilder fieldTopic = PipeReader.readUTF8(input,MSG_PUBLISH_103_FIELD_TOPIC_1,new StringBuilder(PipeReader.readBytesLength(input,MSG_PUBLISH_103_FIELD_TOPIC_1))); DataInputBlobReader<MessagePubSub> fieldPayload = PipeReader.inputStream(input, MSG_PUBLISH_103_FIELD_PAYLOAD_3); }
public static void consumeResponse(Pipe<HTTPLogResponseSchema> input) { long fieldTime = PipeReader.readLong(input,MSG_RESPONSE_1_FIELD_TIME_11); long fieldChannelId = PipeReader.readLong(input,MSG_RESPONSE_1_FIELD_CHANNELID_12); int fieldSequence = PipeReader.readInt(input,MSG_RESPONSE_1_FIELD_SEQUENCE_13); StringBuilder fieldHead = PipeReader.readUTF8(input,MSG_RESPONSE_1_FIELD_HEAD_14,new StringBuilder(PipeReader.readBytesLength(input,MSG_RESPONSE_1_FIELD_HEAD_14))); long fieldDuration = PipeReader.readLong(input,MSG_RESPONSE_1_FIELD_DURATION_15); }