protected override void ReadDataFromStream(CdrInputStream inputStream) { // internet-iiop profile is encapsulated CdrEncapsulationInputStream encapsulation = inputStream.ReadEncapsulation(); Debug.WriteLine("parse Internet IIOP Profile"); byte giopMajor = encapsulation.ReadOctet(); byte giopMinor = encapsulation.ReadOctet(); m_giopVersion = new GiopVersion(giopMajor, giopMinor); Debug.WriteLine("giop-verion: " + m_giopVersion); m_hostName = encapsulation.ReadString(); Debug.WriteLine("hostname: " + m_hostName); m_port = encapsulation.ReadUShort(); Debug.WriteLine("port: " + m_port); uint objectKeyLength = encapsulation.ReadULong(); m_objectKey = new byte[objectKeyLength]; Debug.WriteLine("object key follows"); for (uint i = 0; i < objectKeyLength; i++) { m_objectKey[i] = encapsulation.ReadOctet(); Debug.Write(m_objectKey[i] + " "); } Debug.WriteLine(""); // GIOP 1.1, 1.2: if (!(m_giopVersion.Major == 1 && m_giopVersion.Minor == 0)) { m_taggedComponents = new TaggedComponentList(encapsulation); } Debug.WriteLine("parsing Internet-IIOP-profile completed"); }
protected override void ReadDataFromStream(CdrInputStream inputStream) { // internet-iiop profile is encapsulated CdrEncapsulationInputStream encapsulation = inputStream.ReadEncapsulation(); Debug.WriteLine("parse Multiple component Profile"); m_taggedComponents = new TaggedComponentList(encapsulation); Debug.WriteLine("parsing multiple components profile completed"); }
/// <summary> /// returns the code set component data or null if not found /// </summary> internal static object /* CodeSetComponentData */ FindCodeSetComponent(IIorProfile profile, Codec codec) { TaggedComponentList list = profile.TaggedComponents; object result = list.GetComponentData(TAG_CODE_SETS.ConstVal, codec, CodeSetComponentData.TypeCode); if (result != null) { return((CodeSetComponentData)result); } return(null); }