Module jcifs

Class NdrSmall

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

public class NdrSmall extends NdrObject
Represents an NDR small integer (1 byte unsigned) for DCE/RPC communication. This class encapsulates a single byte value (0-255) in NDR format.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The small integer value (0-255)
  • Constructor Summary

    Constructors
    Constructor
    Description
    NdrSmall(int value)
    Constructs an NdrSmall 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 small integer value (0-255)
  • Constructor Details

    • NdrSmall

      public NdrSmall(int value)
      Constructs an NdrSmall with the specified value
      Parameters:
      value - the small integer value (will be masked to 0-255 range)
  • 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