RPC: Added constructor to ContextElement

This commit is contained in:
Tal Aloni 2017-09-09 09:52:15 +03:00
parent cd6b0bf864
commit 381e618669

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
@ -17,11 +17,15 @@ namespace SMBLibrary.RPC
public class ContextElement // Presentation Context Element
{
public ushort ContextID;
//byte NumberOfTransferSyntaxItems;
// byte NumberOfTransferSyntaxItems;
public byte Reserved;
public SyntaxID AbstractSyntax;
public List<SyntaxID> TransferSyntaxList = new List<SyntaxID>();
public ContextElement()
{
}
public ContextElement(byte[] buffer, int offset)
{
ContextID = LittleEndianConverter.ToUInt16(buffer, offset + 0);