java.lang.Object
org.codelibs.jcifs.smb1.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb1.dcerpc.rpc.unicode_string
- Direct Known Subclasses:
UnicodeString
- Enclosing class:
- rpc
Unicode string structure for DCE/RPC.
Represents a counted Unicode string as used in RPC protocols.
-
Field Summary
FieldsModifier and TypeFieldDescriptionshort[]The buffer containing the Unicode characters.shortThe actual length of the string in bytes.shortThe maximum allocated length of the string in bytes. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
length
public short lengthThe actual length of the string in bytes. -
maximum_length
public short maximum_lengthThe maximum allocated length of the string in bytes. -
buffer
public short[] bufferThe buffer containing the Unicode characters.
-
-
Constructor Details
-
unicode_string
public unicode_string()Default constructor for unicode_string.
-
-
Method Details
-
encode
Description copied from class:NdrObjectEncodes this NDR object into the specified buffer- Specified by:
encodein classNdrObject- Parameters:
_dst- the destination buffer for encoding- Throws:
NdrException- if encoding fails
-
decode
Description copied from class:NdrObjectDecodes this NDR object from the specified buffer- Specified by:
decodein classNdrObject- Parameters:
_src- the source buffer for decoding- Throws:
NdrException- if decoding fails
-