Package jcifs.internal.smb2.lock
Class Smb2Lock
- java.lang.Object
-
- jcifs.internal.smb2.lock.Smb2Lock
-
-
Field Summary
Fields Modifier and Type Field Description static int
SMB2_LOCKFLAG_EXCLUSIVE_LOCK
static int
SMB2_LOCKFLAG_FAIL_IMMEDIATELY
static int
SMB2_LOCKFLAG_SHARED_LOCK
static int
SMB2_LOCKFLAG_UNLOCK
-
Constructor Summary
Constructors Constructor Description Smb2Lock(long offset, long length, int flags)
-
-
-
Field Detail
-
SMB2_LOCKFLAG_SHARED_LOCK
public static final int SMB2_LOCKFLAG_SHARED_LOCK
- See Also:
- Constant Field Values
-
SMB2_LOCKFLAG_EXCLUSIVE_LOCK
public static final int SMB2_LOCKFLAG_EXCLUSIVE_LOCK
- See Also:
- Constant Field Values
-
SMB2_LOCKFLAG_UNLOCK
public static final int SMB2_LOCKFLAG_UNLOCK
- See Also:
- Constant Field Values
-
SMB2_LOCKFLAG_FAIL_IMMEDIATELY
public static final int SMB2_LOCKFLAG_FAIL_IMMEDIATELY
- See Also:
- Constant Field Values
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceEncodable
- Returns:
- the encoded size
- See Also:
Encodable.size()
-
encode
public int encode(byte[] dst, int dstIndex)
- Specified by:
encode
in interfaceEncodable
- Returns:
- encoded length
- See Also:
Encodable.encode(byte[], int)
-
-