Module jcifs

Class NdrShort

java.lang.Object
org.codelibs.jcifs.smb.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb.dcerpc.ndr.NdrShort

public class NdrShort extends NdrObject
NDR representation of a short integer (2-byte signed integer).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The short integer value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NdrShort(int value)
    Constructs an NdrShort with the specified value.
  • 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

    • value

      public int value
      The short integer value.
  • Constructor Details

    • NdrShort

      public NdrShort(int value)
      Constructs an NdrShort with the specified value.
      Parameters:
      value - the short integer value
  • 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