RPC: DataRepresentationFormat: Added constructor

This commit is contained in:
Tal Aloni 2018-05-17 14:31:34 +03:00
parent 0bbbcb2ace
commit 3289c0e333

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2018 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,
@ -35,6 +35,13 @@ namespace SMBLibrary.RPC
public ByteOrder ByteOrder;
public FloatingPointRepresentation FloatingPointRepresentation;
public DataRepresentationFormat(CharacterFormat characterFormat, ByteOrder byteOrder, FloatingPointRepresentation floatingPointRepresentation)
{
CharacterFormat = characterFormat;
ByteOrder = byteOrder;
FloatingPointRepresentation = floatingPointRepresentation;
}
public DataRepresentationFormat(byte[] buffer, int offset)
{
CharacterFormat = (CharacterFormat)(buffer[offset + 0] & 0x0F);