diff options
Diffstat (limited to 'Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs')
| -rw-r--r-- | Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs | 96 |
1 files changed, 49 insertions, 47 deletions
diff --git a/Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs b/Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs index cd0bb1a83..9365d5154 100644 --- a/Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs +++ b/Emby.Common.Implementations/IO/SharpCifs/Smb/NtTransQuerySecurityDescResponse.cs @@ -19,58 +19,60 @@ using SharpCifs.Util.Sharpen; namespace SharpCifs.Smb { - internal class NtTransQuerySecurityDescResponse : SmbComNtTransactionResponse - { - internal SecurityDescriptor SecurityDescriptor; + internal class NtTransQuerySecurityDescResponse : SmbComNtTransactionResponse + { + internal SecurityDescriptor SecurityDescriptor; - internal override int WriteSetupWireFormat(byte[] dst, int dstIndex) - { - return 0; - } + internal override int WriteSetupWireFormat(byte[] dst, int dstIndex) + { + return 0; + } - internal override int WriteParametersWireFormat(byte[] dst, int dstIndex) - { - return 0; - } + internal override int WriteParametersWireFormat(byte[] dst, int dstIndex) + { + return 0; + } - internal override int WriteDataWireFormat(byte[] dst, int dstIndex) - { - return 0; - } + internal override int WriteDataWireFormat(byte[] dst, int dstIndex) + { + return 0; + } - internal override int ReadSetupWireFormat(byte[] buffer, int bufferIndex, int len) - { - return 0; - } + internal override int ReadSetupWireFormat(byte[] buffer, int bufferIndex, int len + ) + { + return 0; + } - internal override int ReadParametersWireFormat(byte[] buffer, int bufferIndex, int len) - { - Length = ReadInt4(buffer, bufferIndex); - return 4; - } + internal override int ReadParametersWireFormat(byte[] buffer, int bufferIndex, int + len) + { + Length = ReadInt4(buffer, bufferIndex); + return 4; + } - internal override int ReadDataWireFormat(byte[] buffer, int bufferIndex, int len) - { - int start = bufferIndex; - if (ErrorCode != 0) - { - return 4; - } - try - { - SecurityDescriptor = new SecurityDescriptor(); - bufferIndex += SecurityDescriptor.Decode(buffer, bufferIndex, len); - } - catch (IOException ioe) - { - throw new RuntimeException(ioe.Message); - } - return bufferIndex - start; - } + internal override int ReadDataWireFormat(byte[] buffer, int bufferIndex, int len) + { + int start = bufferIndex; + if (ErrorCode != 0) + { + return 4; + } + try + { + SecurityDescriptor = new SecurityDescriptor(); + bufferIndex += SecurityDescriptor.Decode(buffer, bufferIndex, len); + } + catch (IOException ioe) + { + throw new RuntimeException(ioe.Message); + } + return bufferIndex - start; + } - public override string ToString() - { - return "NtTransQuerySecurityResponse[" + base.ToString() + "]"; - } - } + public override string ToString() + { + return "NtTransQuerySecurityResponse[" + base.ToString() + "]"; + } + } } |
