mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-03 22:41:49 +02:00
RPC: DataRepresentationFormat: Added constructor
This commit is contained in:
parent
0bbbcb2ace
commit
3289c0e333
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue