Module jcifs

Interface Decodable

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 Type
    Method
    Description
    int
    decode(byte[] buffer, int bufferIndex, int len)
    Decode data from a byte buffer
  • Method Details

    • decode

      int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Decode data from a byte buffer
      Parameters:
      buffer - the byte buffer containing the data to decode
      bufferIndex - the starting index in the buffer
      len - the maximum length of data to decode
      Returns:
      decoded length
      Throws:
      SMBProtocolDecodingException - if decoding fails