Module jcifs

Class rpc.unicode_string

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

public static class rpc.unicode_string extends NdrObject
Unicode string structure for DCE/RPC. Represents a counted Unicode string as used in RPC protocols.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    short[]
    The buffer containing the Unicode characters.
    short
    The actual length of the string in bytes.
    short
    The maximum allocated length of the string in bytes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for unicode_string.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Decodes this NDR object from the specified buffer
    void
    Encodes this NDR object into the specified buffer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • length

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

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

      public short[] buffer
      The buffer containing the Unicode characters.
  • 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