From 381e6186694fa03e82b232c94a9b1d4993414c75 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sat, 9 Sep 2017 09:52:15 +0300 Subject: [PATCH] RPC: Added constructor to ContextElement --- SMBLibrary/RPC/Structures/ContextElement.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SMBLibrary/RPC/Structures/ContextElement.cs b/SMBLibrary/RPC/Structures/ContextElement.cs index d76588a..e3641f3 100644 --- a/SMBLibrary/RPC/Structures/ContextElement.cs +++ b/SMBLibrary/RPC/Structures/ContextElement.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Tal Aloni . All rights reserved. +/* Copyright (C) 2014-2017 Tal Aloni . 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 TransferSyntaxList = new List(); + public ContextElement() + { + } + public ContextElement(byte[] buffer, int offset) { ContextID = LittleEndianConverter.ToUInt16(buffer, offset + 0);