RequestHeader_1_2 req12 = new RequestHeader_1_2();
req12.service_context = req10.service_context;
req12.request_id = req10.request_id;
req12.response_flags = (byte)(req10.response_expected ? 3 : 0);
req12.operation = req10.operation;
(req12.target = new TargetAddress()).object_key(req10.object_key);
message.request = req12;
}
break;
case GiopVersion.VERSION_1_1:
{
RequestHeader_1_1 req11 = RequestHeader_1_1Helper.read(this);
RequestHeader_1_2 req12 = new RequestHeader_1_2();
req12.service_context = req11.service_context;
req12.request_id = req11.request_id;
req12.response_flags = (byte)(req11.response_expected ? 3 : 0);
req12.operation = req11.operation;
(req12.target = new TargetAddress()).object_key(req11.object_key);
message.request = req12;
}
break;
case GiopVersion.VERSION_1_2:
message.request = RequestHeader_1_2Helper.read(this);
if (_length > _offset)
{
read_align(8, 0); // parameters are 8-byte aligned (if present)
}
break;
}
if (_gzip)
{
unzip();
}
break;
case MsgType_1_1._Reply:
message.reply = ReplyHeader_1_2Helper.read(this);
if (giopVersion >= GiopVersion.VERSION_1_2)
{
if (_length > _offset)
{
read_align(8, 0); // results are 8-byte aligned (if present)
}
}
if (_gzip)
{
unzip();
}
break;
case MsgType_1_1._LocateRequest:
switch (giopVersion)
{
case GiopVersion.VERSION_1_0:
case GiopVersion.VERSION_1_1:
{
LocateRequestHeader_1_0 req10 = LocateRequestHeader_1_0Helper.read(this);
LocateRequestHeader_1_2 req12 = new LocateRequestHeader_1_2();
req12.request_id = req10.request_id;
(req12.target = new TargetAddress()).object_key(req10.object_key);
message.locateRequest = req12;
}
break;
default:
message.locateRequest = LocateRequestHeader_1_2Helper.read(this);