Package com.hierynomus.smb
Class SMBBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hierynomus.protocol.commons.buffer.Buffer
Buffer.BufferException, Buffer.PlainBuffer -
Field Summary
Fields inherited from class com.hierynomus.protocol.commons.buffer.Buffer
DEFAULT_SIZE, MAX_SIZE, rpos, wpos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionputReserved(int length) Puts '0' bytes for reserved parts of messages/headersShortcut method for putting 1 reserved byte in the buffer.Shortcut method for putting 2 reserved bytes in the buffer.Shortcut method for putting 4 reserved bytes in the buffer.[MS-SMB2].pdf 2.2 Message SyntaxputStringLengthUInt16(String string) [MS-SMB2].pdf 2.2 Message SyntaxMethods inherited from class com.hierynomus.protocol.commons.buffer.Buffer
array, asInputStream, available, clear, compact, ensureAvailable, ensureCapacity, getCompactData, getNextPowerOf2, printHex, putBoolean, putBuffer, putByte, putLong, putLong, putNullTerminatedString, putRawBytes, putRawBytes, putString, putUInt16, putUInt16, putUInt24, putUInt24, putUInt32, putUInt32, putUInt64, putUInt64, readBoolean, readByte, readLong, readLong, readNullTerminatedString, readRawBytes, readRawBytes, readRawBytes, readString, readString, readUInt16, readUInt16, readUInt24, readUInt24, readUInt32, readUInt32, readUInt32AsInt, readUInt64, readUInt64, rpos, rpos, skip, toString, wpos, wpos
-
Constructor Details
-
SMBBuffer
public SMBBuffer() -
SMBBuffer
public SMBBuffer(byte[] data)
-
-
Method Details
-
putReserved
Puts '0' bytes for reserved parts of messages/headers- Parameters:
length- The length of the reserved space.- Returns:
- this
-
putReserved1
Shortcut method for putting 1 reserved byte in the buffer.- Returns:
- this
-
putReserved2
Shortcut method for putting 2 reserved bytes in the buffer.- Returns:
- this
-
putReserved4
Shortcut method for putting 4 reserved bytes in the buffer.- Returns:
- this
-
putString
[MS-SMB2].pdf 2.2 Message Syntax- Parameters:
string- The string value to write- Returns:
- this
-
putStringLengthUInt16
[MS-SMB2].pdf 2.2 Message Syntax- Parameters:
string- the string of which to write the length- Returns:
- this
-