Module jcifs

Interface Encodable

All Known Subinterfaces:
BasicFileInformation, CreateContextRequest, FileInformation, NegotiateContextRequest
All Known Implementing Classes:
ByteEncodable, DfsReferralRequestBuffer, EncryptionNegotiateContext, FileBasicInfo, FileEndOfFileInformation, FileInternalInfo, FileRenameInformation2, FileStandardInfo, FsctlPipeWaitRequest, LockingAndXRange, PreauthIntegrityNegotiateContext, Smb2Lock, Smb2TransformHeader, SrvCopychunk, SrvCopychunkCopy, ValidateNegotiateInfoRequest

public interface Encodable
Interface for objects that can be encoded to a byte buffer. This interface provides methods for serializing data to SMB protocol messages.
Author:
mbechler
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    encode(byte[] dst, int dstIndex)
    Encodes this object into the specified byte array.
    int
    Returns the size in bytes that this object will occupy when encoded.
  • Method Details

    • encode

      int encode(byte[] dst, int dstIndex)
      Encodes this object into the specified byte array.
      Parameters:
      dst - the destination byte array to encode into
      dstIndex - the starting index in the destination array
      Returns:
      encoded length
    • size

      int size()
      Returns the size in bytes that this object will occupy when encoded.
      Returns:
      the encoded size