- All Known Subinterfaces:
AllocInfo,BasicFileInformation,CreateContextResponse,FileInformation,FileSystemInformation,NegotiateContextResponse,SecurityInfo
- All Known Implementing Classes:
ACE,DfsReferralResponseBuffer,EncryptionNegotiateContext,FileBasicInfo,FileBothDirectoryInfo,FileEndOfFileInformation,FileFsFullSizeInformation,FileFsSizeInformation,FileInternalInfo,FileNotifyInformationImpl,FileRenameInformation2,FileStandardInfo,LockingAndXRange,PreauthIntegrityNegotiateContext,Referral,SecurityDescriptor,SmbInfoAllocation,SrvCopyChunkCopyResponse,SrvPipePeekResponse,SrvRequestResumeKeyResponse,ValidateNegotiateInfoResponse
public interface Decodable
Interface for objects that can be decoded from a byte buffer.
This interface provides methods for deserializing data from SMB protocol messages.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte buffer
-
Method Details
-
decode
Decode data from a byte buffer- Parameters:
buffer- the byte buffer containing the data to decodebufferIndex- the starting index in the bufferlen- the maximum length of data to decode- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- if decoding fails
-