/** * The byteBuffer is presumed to have contents of the message already read in. It must have 12 bytes of space at the * beginning for the GIOP header, but the header doesn't have to be copied in. */ public void unmarshalRequestID(ByteBuffer byteBuffer) { int b1, b2, b3, b4; if (!isLittleEndian()) { b1 = (byteBuffer.get(GIOPMessageHeaderLength + 0) << 24) & 0xFF000000; b2 = (byteBuffer.get(GIOPMessageHeaderLength + 1) << 16) & 0x00FF0000; b3 = (byteBuffer.get(GIOPMessageHeaderLength + 2) << 8) & 0x0000FF00; b4 = (byteBuffer.get(GIOPMessageHeaderLength + 3) << 0) & 0x000000FF; } else { b1 = (byteBuffer.get(GIOPMessageHeaderLength + 3) << 24) & 0xFF000000; b2 = (byteBuffer.get(GIOPMessageHeaderLength + 2) << 16) & 0x00FF0000; b3 = (byteBuffer.get(GIOPMessageHeaderLength + 1) << 8) & 0x0000FF00; b4 = (byteBuffer.get(GIOPMessageHeaderLength + 0) << 0) & 0x000000FF; } this.request_id = (b1 | b2 | b3 | b4); }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); }
/** * The byteBuffer is presumed to have contents of the message already read in. It must have 12 bytes of space at the * beginning for the GIOP header, but the header doesn't have to be copied in. */ public void unmarshalRequestID(ByteBuffer byteBuffer) { int b1, b2, b3, b4; if (!isLittleEndian()) { b1 = (byteBuffer.get(GIOPMessageHeaderLength + 0) << 24) & 0xFF000000; b2 = (byteBuffer.get(GIOPMessageHeaderLength + 1) << 16) & 0x00FF0000; b3 = (byteBuffer.get(GIOPMessageHeaderLength + 2) << 8) & 0x0000FF00; b4 = (byteBuffer.get(GIOPMessageHeaderLength + 3) << 0) & 0x000000FF; } else { b1 = (byteBuffer.get(GIOPMessageHeaderLength + 3) << 24) & 0xFF000000; b2 = (byteBuffer.get(GIOPMessageHeaderLength + 2) << 16) & 0x00FF0000; b3 = (byteBuffer.get(GIOPMessageHeaderLength + 1) << 8) & 0x0000FF00; b4 = (byteBuffer.get(GIOPMessageHeaderLength + 0) << 0) & 0x000000FF; } this.request_id = (b1 | b2 | b3 | b4); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); // GIOP 1.2 LocateReply message bodies are not aligned on 8 byte boundaries. }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); this.target = TargetAddressHelper.read(istream); getObjectKey(); // this does AddressingDisposition check }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); // GIOP 1.2 LocateReply message bodies are not aligned on 8 byte boundaries. }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); this.target = TargetAddressHelper.read(istream); getObjectKey(); // this does AddressingDisposition check }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); nullCheck(this.target); TargetAddressHelper.write(ostream, this.target); }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); this.response_flags = istream.read_octet(); this.reserved = new byte[3]; for (int _o0 = 0; _o0 < (3); ++_o0) { this.reserved[_o0] = istream.read_octet(); } this.target = TargetAddressHelper.read(istream); getObjectKey(); // this does AddressingDisposition check this.operation = istream.read_string(); this.service_contexts = new ServiceContexts((org.omg.CORBA_2_3.portable.InputStream) istream); // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first read operation called from the stub code, // during body deconstruction, would skip the header padding, that was // inserted to ensure that the body was aligned on an 8-octet boundary. ((CDRInputStream) istream).setHeaderPadding(true); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); nullCheck(this.target); TargetAddressHelper.write(ostream, this.target); }
public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); this.response_flags = istream.read_octet(); this.reserved = new byte[3]; for (int _o0 = 0; _o0 < (3); ++_o0) { this.reserved[_o0] = istream.read_octet(); } this.target = TargetAddressHelper.read(istream); getObjectKey(); // this does AddressingDisposition check this.operation = istream.read_string(); this.service_contexts = new ServiceContexts((org.omg.CORBA_2_3.portable.InputStream) istream); // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first read operation called from the stub code, // during body deconstruction, would skip the header padding, that was // inserted to ensure that the body was aligned on an 8-octet boundary. ((CDRInputStream) istream).setHeaderPadding(true); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write((org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext((org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be aligned on an 8 octet boundary. Ensures that the first // write operation called from the stub code, during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream) ostream).setHeaderPadding(true); }
public void read(org.omg.CORBA.portable.InputStream istream) super.read(istream); this.request_id = istream.read_ulong(); this.reply_status = istream.read_long();
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write((org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext((org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be aligned on an 8 octet boundary. Ensures that the first // write operation called from the stub code, during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream) ostream).setHeaderPadding(true); }
public void read(org.omg.CORBA.portable.InputStream istream) super.read(istream); this.request_id = istream.read_ulong(); this.reply_status = istream.read_long();
public void write(org.omg.CORBA.portable.OutputStream ostream) super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_octet(this.response_flags);
public void read(org.omg.CORBA.portable.InputStream istream) super.read(istream); this.request_id = istream.read_ulong(); this.reply_status = istream.read_long();