java.lang.Object
org.codelibs.jcifs.smb.internal.smb2.ioctl.SrvPipePeekResponse
- All Implemented Interfaces:
Decodable
Response structure for SMB2 IOCTL pipe peek operation.
Provides information about data available in a named pipe.
- Author:
- svella
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] buffer, int bufferIndex, int len) Decode data from a byte bufferbyte[]getData()Gets the data peeked from the pipeintGets the length of the first message in the pipeintGets the current state of the named pipeintGets the number of messages available in the pipeintGets the amount of data available to read from the pipe
-
Constructor Details
-
SrvPipePeekResponse
public SrvPipePeekResponse()Constructs a new SrvPipePeekResponse. This response contains information about data available in a named pipe.
-
-
Method Details
-
getNamedPipeState
public int getNamedPipeState()Gets the current state of the named pipe- Returns:
- the namedPipeState
-
getReadDataAvailable
public int getReadDataAvailable()Gets the amount of data available to read from the pipe- Returns:
- the readDataAvailable
-
getNumberOfMessages
public int getNumberOfMessages()Gets the number of messages available in the pipe- Returns:
- the numberOfMessages
-
getMessageLength
public int getMessageLength()Gets the length of the first message in the pipe- Returns:
- the messageLength
-
getData
public byte[] getData()Gets the data peeked from the pipe- Returns:
- the data
-
decode
Decode data from a byte buffer- Specified by:
decodein interfaceDecodable- Parameters:
buffer- the byte buffer containing the data to decodebufferIndex- the starting index in the bufferlen- the maximum length of data to decode- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- if decoding fails- See Also:
-