Module jcifs

Class SrvCopychunk

java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.SrvCopychunk
All Implemented Interfaces:
Encodable

public class SrvCopychunk extends Object implements Encodable
SMB2 SRV_COPYCHUNK data structure. This structure represents a single chunk specification for server-side copy operations.
Author:
mbechler
  • Constructor Summary

    Constructors
    Constructor
    Description
    SrvCopychunk(long soff, long toff, int len)
    Constructs a server copy chunk descriptor
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SrvCopychunk

      public SrvCopychunk(long soff, long toff, int len)
      Constructs a server copy chunk descriptor
      Parameters:
      soff - the source file offset
      toff - the target file offset
      len - the length of data to copy
  • Method Details

    • encode

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

      public int size()
      Returns the size in bytes that this object will occupy when encoded.
      Specified by:
      size in interface Encodable
      Returns:
      the encoded size
      See Also: