Module jcifs

Class rpc.unicode_string

java.lang.Object
org.codelibs.jcifs.smb.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb.dcerpc.rpc.unicode_string
Direct Known Subclasses:
UnicodeString
Enclosing class:
rpc

public static class rpc.unicode_string extends NdrObject
Unicode string structure for DCE/RPC operations. Represents a Unicode string with length information.
  • Field Details

    • length

      public short length
      The length of the string in bytes
    • maximum_length

      public short maximum_length
      The maximum length of the string buffer in bytes
    • buffer

      public short[] buffer
      The Unicode character buffer
  • Constructor Details

    • unicode_string

      public unicode_string()
      Default constructor for unicode_string.
  • Method Details

    • encode

      public void encode(NdrBuffer _dst) throws NdrException
      Description copied from class: NdrObject
      Encodes this NDR object into the specified buffer
      Specified by:
      encode in class NdrObject
      Parameters:
      _dst - the destination buffer for encoding
      Throws:
      NdrException - if encoding fails
    • decode

      public void decode(NdrBuffer _src) throws NdrException
      Description copied from class: NdrObject
      Decodes this NDR object from the specified buffer
      Specified by:
      decode in class NdrObject
      Parameters:
      _src - the source buffer for decoding
      Throws:
      NdrException - if decoding fails