Esempio n. 1
0
        public ContextElement(byte[] buffer, int offset)
        {
            ContextID = LittleEndianConverter.ToUInt16(buffer, offset + 0);
            byte numberOfTransferSyntaxItems = ByteReader.ReadByte(buffer, offset + 2);

            Reserved       = ByteReader.ReadByte(buffer, offset + 3);
            AbstractSyntax = new SyntaxID(buffer, offset + 4);
            offset        += 4 + SyntaxID.Length;
            for (int index = 0; index < numberOfTransferSyntaxItems; index++)
            {
                SyntaxID syntax = new SyntaxID(buffer, offset);
                TransferSyntaxList.Add(syntax);
                offset += SyntaxID.Length;
            }
        }
Esempio n. 2
0
 public ResultElement(byte[] buffer, int offset)
 {
     Result         = (NegotiationResult)LittleEndianConverter.ToUInt16(buffer, offset + 0);
     Reason         = (RejectionReason)LittleEndianConverter.ToUInt16(buffer, offset + 2);
     TransferSyntax = new SyntaxID(buffer, offset + 4);
 }