Module jcifs

Class SrvCopyChunkCopyResponse

java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.SrvCopyChunkCopyResponse
All Implemented Interfaces:
Decodable

public class SrvCopyChunkCopyResponse extends Object implements Decodable
SMB2 SRV_COPYCHUNK_COPY response data structure. This structure contains the result of a server-side copy operation.
Author:
mbechler
  • Constructor Details

    • SrvCopyChunkCopyResponse

      public SrvCopyChunkCopyResponse()
      Constructs a new SrvCopyChunkCopyResponse. This response contains the results of a server-side copy operation.
  • Method Details

    • getChunkBytesWritten

      public int getChunkBytesWritten()
      Gets the number of bytes written in the last chunk
      Returns:
      the chunkBytesWritten
    • getChunksWritten

      public int getChunksWritten()
      Gets the number of chunks successfully written
      Returns:
      the chunksWritten
    • getTotalBytesWritten

      public int getTotalBytesWritten()
      Gets the total number of bytes written in the copy operation
      Returns:
      the totalBytesWritten
    • decode

      public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Decode data from a byte buffer
      Specified by:
      decode in interface Decodable
      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
      See Also: